hello everyone i hope someone can help me I have this code which prints out a line from the csv file but if you look at my code. Where it says if (i%10 == ((Integer)arr2.get(arr2.size()-1)).intValue()) this will read in the last item that is in the arraylist (arr2) by getting the integer value. but i want it to read out all the values that are inside the arraylist arr2 how could i do this? please could some one help me thanks ben
posted 13 years ago
Instead "-1" in your code: if (i%10 == ((Integer)arr2.get(arr2.size()-1)).intValue()) use variable that you will increment/decrement to the size of your array. Hope this will help.