 <p>You're missing two more closing braces at the end of the file. </p> <ul> <li>One to close your main</li> <li>And the other to close off your class.</li> </ul> <p>Also, you should use equals() when comparing <code>accountType</code> as Satya mentioned in the comment.</p>