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...
Type: Posts; User: javapenguin
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...
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...