title: MIPS: Accessing all indexes of an array and printing it out
body: <p>I am trying to take in some user input that takes in a length of an array, and the user is able to assign the numbers for every index of that array, and then print it out. The Java code I basically want to do is:</p>
  <pre class="lang-java prettyprint-override"><code>Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int[] array = new int[N];
      for (int i=0; i&lt;N; i++) {
        array[i] = sc.nextInt();
      }
  
    
  </code></pre>