Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   java loop (http://www.go4expert.com/forums/java-loop-t13024/)

liam_page1 18Aug2008 18:28

java loop
Hey, im a really noob at this, but I need some help with this question. I've got to complete this in order to progress to my second year although im not doing programming and will not need it in the second year. The question is as follows:

Given a list of integers and an integer variable declared like this:
List<Integer> list;
int max;

and assuming that some values have been added to the list, write a loop which finds the largest value in list and stores it in max.

To be honest I dont really have a clue what how to write this so any help would be much appreciated. Cheers guys

All times are GMT +5.5. The time now is 00:24.