title: Why am I receiving errors on Java array assignment?
body: <p>I am trying to assign int literals to certian indexs of the array. I keep  getting errors from the compiler. This <a href="http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html" rel="nofollow">article</a> seems to suggest That I have done this correctly. 
  Here is the code: </p>
  
  <pre><code>public class Mytest {
      int[] jim = new int[9];
      jim[0] = 77;
  }
  </code></pre>
  
  <p>Compiler Errors:</p>
  
  <pre><code>Mytest.java:5: error: ']' expected
      jim[0] = 77;
          ^
  Mytest.java:5: error: ';' expected
      jim[0] = 77;
           ^
  Mytest.java:5: error: illegal start of type
      jim[0] = 77;
             ^
  Mytest.java:5: error: &lt;identifier&gt; expected
      jim[0] = 77;
              ^
  </code></pre>
  
  <p>Thanks in advance. </p>