File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with a statement

 
ben riches
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Irene Loos
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic