
05-07-2008, 04:55 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
|
|
Something like this may help in that sense, I think.
private void findMax(ArrayList arl) {
int max = 0;
for(int i = 0; i < arl.size(); i++) {
if(Integer.parseInt((String) arl.get(i)) > max) {
max = Integer.parseInt((String) arl.get(i));
}
}
System.out.println(max);
}
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|