Java Ch 5 Loops
Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!
break
Used to immediately terminate the immediate loop
continue
Used to resume program execution at the end of the current loop body. If followed by a label, continue resumes execution at the end of the enclosing labeled loop body.
answer = input.nextLine().charAt(0)
sentinel value for user input to continue the loop based on char!
Sentinel value
a preselected value that stops the execution of a program
