title: Array syntax is not valid
body: <p>I try to do a simple thing,  split text and put result in an array</p>
  
  <pre><code>public void testSplit(){
      String x="test-hi-thank";
  String y[]=x.split("-");
      System.out.println(y.length);
  }
  
  testSplit();
  </code></pre>
  
  <p>I got this error</p>
  
  <pre><code>C:\temp&gt;java -cp bsh-2.0b4.jar bsh.Interpreter test.bsh
  Evaluation Error: Parse error at line 3, column 17.  Encountered: [
  </code></pre>
  
  <p>Is there any thing to do?</p>
  
  <p>Outside a class we must do: y=x.split("-");</p>