title: Something wrong with Coding Style
body: <p>Is there something wrong with my coding style here? 
  This is for homework and I was trying to submit it but it says my style is wrong :/</p>
  
  <pre><code>import java.util.Scanner;
  public class Groucho {
      String secret;
      public Groucho(String secret) {
          this.secret = secret;
      }
      public boolean saysSecret(String line) {
          if (line.indexOf(secret) != -1)
              return true;
          else 
              return false;
      }
      public static void main(String[] args) {
          Scanner in = new Scanner(System.in);
          System.out.println("Enter your secret word here: ");
          String a = in.nextLine();
          Groucho x = new Groucho(a);
          System.out.println("Please enter a sentence until you win the game");
          while (in.hasNextLine()) {
              String inp = in.nextLine();
              if (x.saysSecret(inp)) {
                  System.out.println("You have won $100 for saying " + a);
                  break;
              }
              else
                  System.out.println("Try again");
          }
      }
  }
  </code></pre>
  
  <p>This is what my style checker says is wrong:</p>
  
  <pre><code>Request 1
  File received, running checkstyle...
  Starting audit...
  Groucho.java:20: while child at indentation level 11 not at correct indentation, 12
  Groucho.java:21: if at indentation level 11 not at correct indentation, 12
  Groucho.java:22: if child at indentation level 15 not at correct indentation, 16
  Groucho.java:22: method call child at indentation level 15 not at correct indentation, 16
  Groucho.java:23: if child at indentation level 15 not at correct indentation, 16
  Groucho.java:24: if rcurly at indentation level 11 not at correct indentation, 12
  Groucho.java:25: else at indentation level 11 not at correct indentation, 12
  Groucho.java:26: method call child at indentation level 15 not at correct indentation, 16
  Audit done.
  
  Done!
  </code></pre>