title: Trying to create simple java menu, but its not working
body: <p>This is the code. I gives me an error where the switch is. Please help. Maybe a link to a site where i can learn this.</p>
  
  <pre><code>public class Main{
  public static void main(String[] args) {
      int swValue;
  
      System.out.println("***************************************Menu***************************************");
      System.out.println("Spauskite 1 jei norite atspauzdinti programje sukurtu objektu sarasus");
      System.out.println("Spauskite 2 jei norite sukurti naujus objektus, ju duomenis ivedant is klavieturos");
      System.out.println("Spauskite 3 jei norite iskviesti objektu metodus");
  
      switch (swValue) {
      case 1: System.out.println("1 Selected");
          break;
      case 2: System.out.println("2 Selected");
          break;
      case 3: System.out.println("3 Selected");
          break;
      default: System.out.println("Invalis selection");
      break;
      }
  </code></pre>