Switch Java Class