1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

java loop

Discussion in 'Java' started by liam_page1, Aug 18, 2008.

  1. liam_page1

    liam_page1 New Member

    Aug 8, 2008
    Likes Received:
    Trophy Points:
    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

Share This Page