Java Ch 5 Loops

Ace your homework & exams now with 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


Related study sets

AP Euro- Chapter 19 French Revolution and Napoleon AP Exam Review Quiz

View Set

Intermediate Accounting Chapter 10

View Set

FR A U4 - B - C'est comment chez toi?

View Set

USH-American Values & Important Documents Vocabulary

View Set

Neutron Stars and Black Holes - Chapter 22

View Set

RSCH6258: Accounting Research Method

View Set

Clostridium Perfringens (Gas Gangrene)

View Set

HIM 474: Electronic Health Records II

View Set