title: Java if (Yes or No Statement)
body: <p>Hey there I got into some trouble with my java Code.
  I try to code a bit around with java for a few hours and I dont know much thats why im asking. I learn best by trying but I get into so many problems.</p>
  
  <p>So: I want the scanner to scan the next Statement and if its "ja" it should do the if thing etc.</p>
  
  <p>The problem is, when i try to compile it it has an error with the = s.nextInt thing. In the console it says: "cannot find symbole". I tried so many things I dont know what to do. Allready tried so much.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Brotcrunsher {
      public static void main(String args[]) {
          Scanner scan = new Scanner(System.in);
          System.out.println ("Hallo");
          System.out.println ("A flag has more then 1 color right?");
          String a = s.NextInt();
          if (a.equals("ja")) {
              System.out.println ("You arent dumb, nice.");
          } // end of if
          else {
              System.out.println ("You arentn a genie");
          } // end of if-else
      }
  }
  </code></pre>
  
  <p>thanks in advance.</p>
  
  <p>EDIT: Problem solved. Thank you for every awnser. I try my best to Tag my posts better and to format my code better</p>