title: Syntax error, insert "EnumBody" to complete BlockStatement
body: <pre><code>public class SumLineTester {
  /**
   * @param args
   */
  public static void main(String[] args) {
         // TODO Auto-generated method stub
         SumLine test = new SumLine("5 8 3 2 1");
         System.out.println(test.getSum());
      }
  }
  
  
  import java.util.Scanner;
  
  public class SumLine {
      private String line;
  
      public SumLine(String s) {
          line = s;
      }
  
      public int getSum(){
          int sum = 0;
          Scanner chop = new Scanner(line);
  
          while(chop.hasNextInt()){
              sum= sum + chop.nextInt();
          }
          return sum;
  
      public String getLine(){
          return s;
      }
  
      public String toString(){
          return line;
      }
   }
   }
  </code></pre>
  
  <p>The first portion of code above import is my tester class that contains my main method. The rest is the code that I am trying to run off of tester and I keep getting this error: </p>
  
  <pre><code>Syntax error, insert "EnumBody" to complete BlockStatement
  
  at SumLine.getSum(SumLine.java:17)
  at SumLineTester.main(SumLineTester.java:10)
  </code></pre>
  
  <p>How do I fix the bug?</p>