|
-
November 30th, 2011, 10:36 PM
#16
Re: Need Help Finishing My Code!!
Any luck yet? Ive tried multiple things getting the same result. The min & max == the same thing
-
November 30th, 2011, 10:44 PM
#17
Re: Need Help Finishing My Code!!
-
December 1st, 2011, 12:34 AM
#18
Re: Need Help Finishing My Code!!
Did you ever figure it out before the end of the night?
-
December 1st, 2011, 12:37 PM
#19
Re: Need Help Finishing My Code!!
So in your buildList method what is the following line supposed to do:
Code:
while(i<line.length() && line.charAt(i)!='i');
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|