title: Pass variable outside of loop, Java
body: <p>I continue to get the error: variable V might not have been initialized. What am I doing wrong? I need to continue to work with the variable V outside of the loop. Is it possible to so this? </p>
  
  <pre><code>    String[] arr = _input.split(SEPARATOR);
      String[] V;
      int chunk = 1; // chunk size to divide
      for( int i=0;i&lt;arr.length;i+=chunk){
          V = Arrays.copyOfRange(arr, i, Math.min(arr.length,i+chunk));
      }
      System.out.print(Arrays.toString(V));
  </code></pre>