How to manually plug in values in an array of strings? : <p>I often have a problem picking up what movie I should watch. So, I decided to make a simple program to randomize my pick but got stuck on the first step. <strong>I want to know how to assign Strings - that are the movie names- to an array. Here is my  unfinished code</strong></p>

<pre><code>    Scanner input = new Scanner(System.in);

  System.out.println("How many movies are you considering?");
  int number = input.nextInt();
  String[] movies = new String[number];

  System.out.println("Enter movie titles...");

  for(int i=1; i &lt;= number; i++){
     System.out.print(i + "- ");
     movies[i] = input.next();
     System.out.println();
  }
</code></pre>
