void testK(ArrayList list) {
for (int y= list.size() ; y > 0 ; y-- ) {
Kostka kst = list.get(y -1);
}}
when I try to compile this code, it says that the (y -1) (3rd line) is incompatible
- but the
list.size()method should return an integer, so whats the problem ?
ArrayList? It Should beArrayList<Kostka> list