Whenever i try and run my code i get an error array out of bounds.
trans = new ArrayList<List<Transition>>(5);
ArrayList<Transition> t = new ArrayList<Transition>(5);
for (j = 0; j <5; j++)
trans.get(j).addAll(t); // <- Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
IndexOutOfBoundsException.trans.add(t)ortrans.add(j,t)