Any luck yet? Ive tried multiple things getting the same result. The min & max == the same thing
Printable View
Any luck yet? Ive tried multiple things getting the same result. The min & max == the same thing
no luck so far
Did you ever figure it out before the end of the night?
So in your buildList method what is the following line supposed to do:
First time through the outer loop when this line is executed i = 0 so the first part of the while test (i < line.length()) will be true and the second part of the while test will always be true because 'line' contains digits and not a character 'i'. This means the while loop's code block will execute, but there is no code block - the line ends with a semi-colon - so the while loop test will execute again ie you will get stuck in an infinite loop.Code:while(i<line.length() && line.charAt(i)!='i');