title: how could I loop an array with a scanner input
body: <p>how could I make a If or else statement and loop the input for the array
      package songsort;</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Songs {
  
      public static void main(String[] args) {
  int num = 0;
          // TODO Auto-generated method stub
          Scanner sc = new Scanner(System.in);
  
           int[] songAmount = new int[num];
          if () {}
           songAmount[0] = sc.nextInt();
  
      }
  
  }
  </code></pre>