title: Creating an array that counts up to a given number
body: <p>I need help creating an array that counts up to a given number. The output should look something like this:</p>
  
  <pre><code>Enter a positive integer: 8
  Counting up: 1 2 3 4 5 6 7 8
  Counting down: 8 7 6 5 4 3 2 1
  The first 8 multiples of 5: 5 10 15 20 25 30 35 40
  The first 8 multiples of 10: 10 20 30 40 50 60 70 80
  </code></pre>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>Scanner input = new Scanner(System.in);
  
      int[] myList = new int[1];
  
      System.out.print("Enter a positive integer: ");
      promptUser(myList);
  
      int[] testArray = { 1, 1, 2, 3, 5, 8, 13 };
      System.out.print("Test array: ");
      printArray(testArray);
  
      System.out.print("Counting up: ");
      int[] countingUp = countUp(n);
      printArray(countingUp);
  }
  
  public static void promptUser(int[] a){
      Scanner input = new Scanner(System.in);
      for(int i=0; i&lt;a.length; i++){
          a[i] = input.nextInt();
  
      }
  }
  
  public static void printArray(int[] array){
      for(int i=0; i&lt;array.length; i++)
          System.out.print(array[i]);
  
      }
  
  public static int[] countUp(int n){
      for(int i=0; i&lt;n; i++){
          int count = 0;
          while(count&lt;n){
              count++;
          }
      }
  }
  }
  </code></pre>
  
  <p>Everything seems to work alright except for the last method called countingUp. </p>
  
  <p>Thank you so much!</p>