Stupid Java question, why isnt switch working outside of the main method?

Printable View