In c++ we can have this kind of vectors:
vector < int > v[20];
I have to create the equivalent in java of a program in c++. I can declare
static ArrayList < ArrayList<Integer > > v;
but it's not quite what I want. I want it to be more intuitive. I am trying to find a way to easily add elements in my structure. For example if I have a graph and I am reading a road from a to b, in C++ a simply use v[a].push_back(b).