title: Scanner input not working (Java)?
body: <p>I am new to Java and have been trying to create an interactive game. I could make it in one class however I just recently learned how to use two classes so I wanted to try it out. Anyway, it seems my Scanner in my second class(tuna) is not working for some reason. I have tried to make it with if and if else statements but that didn't work either(and yes I was using'.equals' not '==' for the parameters of the if statements). I am legitimately stuck and need help. I have looked for answers on Stack but have failed to find any for this problem. Please tell me what is wrong with this part of the code as it is probably a logic error. If this is a duplicate send me the link to the answer and I will take this one down.
  CODE: 
  FIRST CLASS:</p>
  
  <pre><code>    import java.util.Scanner;
  
  class hand {
  
      public static void main(String[] args) {
          tuna opObject = new tuna();
          //creating input
          Scanner input = new Scanner(System.in);
          //instructions
          System.out.println("This is an interactive game. You are a traveler and have come across this strange hotel. Type in 'go' to begin.");
          // Initializing game
          if(input.nextLine().equals ("go")) {
                  System.out.println("A smiling, some what tall fellow in a red suit walks up to you.'Welcome to the amazing, KingstonTraveler Hotel! How may I serve you traveler?'");
              }
          System.out.println("Will you a) punch him b) 'I would like a room' c) DIE! ");
          opObject.options();
          }
      }
  </code></pre>
  
  <p>SECOND CLASS(scanner not working) :</p>
  
  <pre><code>import java.util.Scanner;
  
  public class tuna {
      Scanner input = new Scanner("System.in");
      public String answer = input.nextLine();
      public void options() {
          switch(answer){
          case "a": System.out.println("answer a");
              break;
          case "b": System.out.println("answer b");
              break;
          case "c": System.out.println("answer c");
          }
          }
      }
  </code></pre>