You are not initializing the variable
acct1 anywhere in your code, so
Java will complain when you try to use the variable (in lines 33 and 34).
You need to initialize it, by creating a new Account object somewhere and assigning it to the variable. For example: