Search:

Type: Posts; User: javapenguin

Search: Search took 0.09 seconds.

  1. Replies
    15
    Views
    8,727

    Re: Find the two largest number

    Yes but what if the new number it encounters is larger than second largest but smaller than largest? Merely setting the second largest to the previous largest every time and not dealing with the...
  2. Replies
    15
    Views
    8,727

    Re: Find the two largest number

    Would this work?



    int[] numbers = new int[10];
    // That was an array. It stores a bunch of a type of data (It has to be all of the same data type. Can't store both ints and doubles (unless...
Results 1 to 2 of 2