title: Arrays, having trouble understanding how to set it up
body: <p>Working with arrays, the question asks:</p>
  
  <ol>
  <li>Write a java program that declares an array alpha to 50 elements of type double. </li>
  <li>Initialize the array so that the first 25 numbers are equal to the square of the index variable</li>
  <li>And the last 25 elements are equal to 3 times the index variable. </li>
  <li>Output the array so that 10 elements per line are printed.</li>
  </ol>
  
  <p>I only have a few lines of code, I have no idea exactly what i should be doing.</p>
  
  <pre><code>    public class ch9_problem1{
          public static void main(String[] args){
              double[] alpha = new double[50];
              for(int x = 0; x &lt; 25; x++){
                  System.out.print(alpha[x] + "\n");
              }       
          }
      }
  </code></pre>