Lecture 3
18
while: Bank.java lines 58-64
•Line 60: variable bankIsOpen has  type  boolean: value may be  true or  false
•At line 61, while tests value of bankIsOpen
–go to line 62 if bankIsOpen == true
–go to line 70 if bankIsOpen == false
•Value of bankIsOpen might change from true to false in lines 63, 64
•Loop body is code between brace { on line 61 and brace } on line 69
•Note how indentation (prettyprinting) helps you see the loop body
–