while (true) { System.out.print("Your Guess: "); input = scanner.nextInt(); if (LOWER_BOUND <= input && input <= UPPER_BOUND) { return input; }
this is a chunk of the whole code that i've written, a simple development exercise in the book
my question is....is this part will terminate a loop?
if (LOWER_BOUND <= input && input <= UPPER_BOUND) { return input;
im a bit curious about a returning value... when this statement is statisfied? will the loop stop?
if there something unclear about my codes. let me know , ill post the whole code for you...