1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

java loop

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

  1. liam_page1

    liam_page1 New Member

    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