User Profile

Collapse

Profile Sidebar

Collapse
joej231
joej231
Last Activity: Aug 26 '08, 11:18 AM
Joined: Mar 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • joej231
    replied to Homework help
    in Java
    for question
    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.

    i used this answer
    for (int i : list)
    {
    if (i > max)
    {
    max = i;
    ...
    See more | Go to post

    Leave a comment:


  • joej231
    replied to looping explanination
    in Java
    could you explain this loop please?

    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.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...