java skips a block of code...
I can't figure out what's wrong with my code... According to all logic everything should be correct, and the compiler doesn't complain either. But the program skips a block of code.
Here is the block that it skips for some reason:
int lowerBound=LasIn.läsHeltal("Enter the lower bound. ");
int upperBound=LasIn.läsHeltal("Now enter the upper bound. ");
System.out.println("The lower bound cannot be higher than the upper"+
After this it just complains that lowerBound and upperBound cannot be resolved. And it never prints the "Enter the lower/upper bound.". In this code LasIn is a class that has a method called läsHeltal. These should work well and should not be the cause of the problem.
The condition in the while-loop should trigger the loop right? As I had just set success to false... I don't see why it doesn't execute...
Here is the full script as well: Java pastebin - collaborative debugging tool.
Thank you for the help!!!