title: Movie List By Category (Java)
body: <p>I am a total noob to this Java thing and my introduction to programming was last year and I Loved it but I am still trying to understand it. I have been to this site before with my problems from learning Ruby on Rails. Awesome site!</p>
  
  <p>Well onto my issue... I m taking a class and I am trying to find out what might be causing this issue.  Not asking for someone to do the work for me...I just want to know why it is happening. I am stumped.</p>
  
  <p>Everything seems to work fine until I enter the "drama category ..where it also spits out the horror movie category as well. I originally set it up for if/else but then net-beans convinced me to use the switch method. if I didn't it wouldn't compile.Any advice on maybe using another method/statement?     </p>
  
  <pre><code>import java.util.*;
  
  public class MovieList {
  
  
      public static void main(String[] args)  
  
      {
          System.out.println("Welcome to the Movie List Application");
          System.out.println();
          System.out.println("There are 100 movie in the list");
          String choice = "y";
          Scanner sc = new Scanner(System.in);
  
          ArrayList&lt;String&gt; animated = new ArrayList&lt;&gt;();
           animated.add("Robot Chicken");
           animated.add("Family Guy");
           animated.add("American Dad");
           animated.add("Bob's Burgers");
           animated.add("The Simpsons");
  
  
           ArrayList&lt;String&gt;drama = new ArrayList&lt;&gt;();
           drama.add("John Q");
           drama.add("The Green Mile");
           drama.add("The Breakfast Club");
           drama.add("The Shawshank Redemption");
           drama.add("Braveheart");
  
           ArrayList&lt;String&gt; horror = new ArrayList&lt;&gt;();
           drama.add("Scream");
           drama.add("Carrie");
           drama.add("Insideous");
           drama.add("Insideous");
           drama.add("Sinister");
  
           ArrayList&lt;String&gt; scifi = new ArrayList&lt;&gt;();
           scifi.add("The Book of Eli");
           scifi.add("Daybreakers");
           scifi.add("Hunter Prey");
           scifi.add("Predators");
           scifi.add("Skyline");
  
          while(choice.equalsIgnoreCase("y"))
              {
              System.out.print("What category are you interested in?");
  
                          String movielist = sc.nextLine();
                      switch (movielist) {
                          case "animated":
                              System.out.println(animated);
                              break;
                          case "drama":
                              System.out.println(drama);
                              break;
                          case "horror":
                              System.out.println(horror);
                              break;
                          case "scifi":
                              System.out.println(scifi);
                              break;
                      }
  
              System.out.print("Continue? y/n): ");
              choice = sc.next();
              }
                      }
  
  
      }
  </code></pre>