title: Java program not reading user input
body: <p>I am trying to read user input and it seems like its not setting the variable to the input.</p>
  
  <p>For example:</p>
  
  <pre><code>System.out.println("Would you like Syrup?(Y/N)");
     String wantSyrup = keyboard.next();
     char syrupWant = wantSyrup.charAt(0);
  
     switch (syrupWant){
  
     case 'y':
         System.out.println("Which syrup would you like?");
          System.out.println("Hot fudge, Chocolate, Caramel, Strawberry");
           syrupChoice = keyboard.nextLine();
          keyboard.nextLine();
          System.out.println("You entered: "+syrupChoice);
  
       if((syrupChoice.equalsIgnoreCase(hotFudge))
                  || (syrupChoice.equalsIgnoreCase(chocolateSyrup))
                  || (syrupChoice.equalsIgnoreCase(caramel))
                  || (syrupChoice.equalsIgnoreCase(strawberrySyrup)))
              {
                  System.out.println(syrupChoice);
              }else{
                  System.out.println("Not a valid choice. You now have Hot Fudge as your syrup.");
                  syrupChoice = hotFudge;
              }
              break;
          default: break;
      }
  </code></pre>
  
  <p>The Console is coming back with this when i enter any type of syrup..</p>
  
  <pre><code>Would you like Syrup?(Y/N)
  y
  Which syrup would you like?
  Hot fudge, Chocolate, Caramel, Strawberry
  caramel
  You entered: 
  Not a valid choice. You now have Hot Fudge as your syrup.
  </code></pre>
  
  <h2>Entire Code (not incuding sundae class)</h2>
  
  <hr>
  
  <pre><code>import java.util.Scanner;
  import java.text.*;
  
  public class SundaeLab {
  
      public static void main(String[] args){
  
      Sundae userSundae = new Sundae();
      Scanner keyboard = new Scanner(System.in);
       String hotFudge = "Hot Fudge";
       String chocolateSyrup = "chocolate";
       String caramel = "caramel";
       String strawberrySyrup = "strawberry";
       String syrupChoice = "";
       String vanilla = "vanilla";
       String peanutButter = "peanut butter";
       String chocolate = "chocolate";
       String coconut = "coconut";
       String cookieDough = "cookie Dough";
       String coffee = "coffee";
       String strawberry = "strawberry";
       String butterPecan = "butter pecan";
       double subtotal;
       double tax;
       final double SUFFOLK_SALES_TAX = .08625;
       double costOfSundae;
       DecimalFormat df = new DecimalFormat("#.##");
  
  
  
      System.out.println("What flavor of Ice Cream would you like?");
      System.out.println("Your choices are: Vanilla, Peanut Butter, Chocolate, Coconut, Cookie Dough,");
      System.out.println(" Coffee, Strawberry, Butter Pecan.");
  
      String flavor = keyboard.nextLine();
      System.out.println("You entered: "+flavor);
      System.out.println("How many scoops of ice cream would you like?");
      System.out.println("One scoop is $1.79. Additional scoops are $1.00 Each.");
      System.out.println("You can have 6 scoops max");
      int numberOfScoops = keyboard.nextInt();
      System.out.println("You entered: "+numberOfScoops);
      String dToppings = "";
  
      //System.out.UserSundae.getFlavor();
      if (flavor.equalsIgnoreCase("vanilla")){
          userSundae.setFlavor(vanilla);
      }
      if (flavor.equalsIgnoreCase("peanut butter")){
          userSundae.setFlavor(peanutButter);
      }
      if (flavor.equalsIgnoreCase("chocolate")){
          userSundae.setFlavor(chocolate);
      }
      if (flavor.equalsIgnoreCase("coconut")){
          userSundae.setFlavor(coconut);
      }
      if (flavor.equalsIgnoreCase("cookie dough")){
          userSundae.setFlavor(cookieDough);
      }
      if (flavor.equalsIgnoreCase("coffee")){
          userSundae.setFlavor(coffee);
      }
      if (flavor.equalsIgnoreCase("strawberry")){
          userSundae.setFlavor(strawberry);
      }
      if (flavor.equalsIgnoreCase("butter pecan")){
          userSundae.setFlavor(butterPecan);
          }
  
      if (!flavor.equalsIgnoreCase(vanilla) &amp;&amp; !flavor.equalsIgnoreCase(coffee) &amp;&amp; !flavor.equalsIgnoreCase(peanutButter)&amp;&amp;
              !flavor.equalsIgnoreCase(chocolate)&amp;&amp; !flavor.equalsIgnoreCase(coconut) &amp;&amp; !flavor.equalsIgnoreCase(cookieDough)&amp;&amp; 
              !flavor.equalsIgnoreCase(strawberry)&amp;&amp; !flavor.equalsIgnoreCase(butterPecan)){
          userSundae.setFlavor(vanilla);
          flavor = vanilla;
          System.out.println("We Changed your flavor to Vanilla");
          }
  
      if ( numberOfScoops &lt;= 6 &amp;&amp; numberOfScoops &gt; 0){}
      else{
          userSundae.Sundae();
          System.out.println("We Changed your scoop amount to: 2");
          numberOfScoops = 2;
      }
      if (numberOfScoops&gt;1){
      subtotal = (numberOfScoops - 1)*1.00 + 1.79;
      }
      else{
          subtotal = 1.79;
      }
      System.out.println("Would you like Whipped Cream?(Y/N)");
      String wantsWhipped = keyboard.next();
      char whippedWants = wantsWhipped.charAt(0); 
  
      if ( whippedWants == 'y'){
          String dTopppings = dToppings  + "Whipped Cream ";
          System.out.println("Whipped cream added");
      }
  
     System.out.println("Would you like Syrup?(Y/N)");
     String wantSyrup = keyboard.next();
     char syrupWant = wantSyrup.charAt(0);
  
     switch (syrupWant){
  
     case 'y':
         System.out.println("Which syrup would you like?");
          System.out.println("Hot fudge, Chocolate, Caramel, Strawberry");
           syrupChoice = keyboard.nextLine();
          keyboard.nextLine();
          System.out.println("You entered: "+syrupChoice);
  
            if((syrupChoice.equalsIgnoreCase(hotFudge))
                      || (syrupChoice.equalsIgnoreCase(chocolateSyrup))
                      || (syrupChoice.equalsIgnoreCase(caramel))
                      || (syrupChoice.equalsIgnoreCase(strawberrySyrup)))
                  {
                      System.out.println(syrupChoice);
                  }else{
                      System.out.println("Not a valid choice. You now have Hot Fudge as your syrup.");
                      syrupChoice = hotFudge;
                  }
                  break;
              default: break;
          }
  
      System.out.println("Our Deluxe toppings are an extra cost of .75 cents each.");
      System.out.println("Would you like to see them? (Y/N)");
      String deluxeList = keyboard.nextLine();
      if(deluxeList.equalsIgnoreCase("y")){
  
      System.out.println("Would you like M&amp;M's(Y/N)");
      String mM = keyboard.nextLine();
      if (mM.equalsIgnoreCase("y")){
      dToppings = dToppings + "M&amp;M's ";
      subtotal = subtotal + .75;
      System.out.println("M&amp;M's Added");
  }
      System.out.println("Would you like Crushed Oreos(Y/N)");
      String oreos = keyboard.nextLine();
      if (oreos.equalsIgnoreCase("y")){
      dToppings = dToppings + "Crushed Oreos ";
      subtotal = subtotal + .75;
      System.out.println("Crushed Oreo's Added");
  
      }
      System.out.println("Would you like Reeses pieces(Y/N)");
      String reeses = keyboard.nextLine();
      if (reeses.equalsIgnoreCase("y")){
      dToppings = dToppings + "Reese's Pieces ";
      subtotal = subtotal + .75;
      System.out.println("Reese's Peices Added");
  
      }
      System.out.println("Would you like Brownie Crunchies(Y/N)");
      String crunchies = keyboard.nextLine();
      if (crunchies.equalsIgnoreCase("y")){
      dToppings = dToppings + "Brownie Crunchies  ";
      subtotal = subtotal + .75;
      System.out.println("Brownie Crunchies Added");
  
      }
      System.out.println("Would you like Mint Chocolate Chips(Y/N)");
      String chips = keyboard.nextLine();
      if (chips.equalsIgnoreCase("y")){
      dToppings = dToppings + "Mint Chocolate Chips ";
      subtotal = subtotal + .75;
      System.out.println("Mint Chocolate Chips Added");
  
      }   
      }
      tax = subtotal * SUFFOLK_SALES_TAX;
      costOfSundae = tax + subtotal;
  
      System.out.println("You got "+numberOfScoops+" Scoops of "+flavor);
      System.out.println("Your syrup is: "+syrupChoice);
      System.out.println("Your toppings are: "+dToppings);
      System.out.println("Your subtotal is: "+ df.format(subtotal));
      System.out.println("the tax is: "+df.format(tax));
      System.out.println("Your total is: "+df.format(costOfSundae));
      }
  }
  </code></pre>