title: Syntax error on token ")", ; expected
body: <p>My Code is </p>
  
  <pre><code>public String split(String line)
  {
  char[] temp = line.toCharArray();
  String get = "";
  for(int i = 0;i &lt; line.length();i++)
      {
      if(temp[i] == ',')
          {
          return get;
          get = "";
          }
      get = get + temp[i];
      }
  }
  </code></pre>
  
  <p>I am working on Eclipse(Indigo). It gives an error "Syntax error on token "(", ; expected".</p>