Lecture 4
11
A method’s variables are declared …
•inside the method where they are used
•near where they are first used (our convention) or at the top of the method (another convention)
•57 public void open()
•58 {
59    atm.println( "Welcome to “ +                       bankName );
•60     boolean bankIsOpen = true;
•no public/private for method variables
•
•