title: Java Array Storing Values
body: <p>I'm trying to store the values inputted on the for-loop structure that I will need for later use, but it can only be recognized inside the for loop structure. I need the stored values to be recognize for the rest of the program but somehow I'm getting an error "cannot find symbol"</p>
  
  <pre class="lang-j prettyprint-override"><code>public class TryArray {
    public static void main(String args[]) throws IOException {
      BufferedReader inpt = new BufferedReader(new InputStreamReader(System. in ));
  
      int[] arrayCrit = new int[5];
      String[] crits = new String[5];
  
      for (int i = 0; i &lt; crits.length; i++) {
        System.out.print("Criteria: ");
        crits[i] = inpt.readLine();
        for (int j = 0; j &lt; arrayCrit.length; j++) {
          System.out.print("Percentage: ");
          arrayCrit[j] = Integer.parseInt(inpt.readLine());
        }
      }
  
      System.out.println(crits[i] + arrayCrit[j])
    }
  }
  </code></pre>
  
  <p>Edit: Yes, I can move the print output inside the for-loop, but I need to input all the values first before showing all of it. Please I need help.</p>