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. I want to know how to assign Strings - that are the movie names- to an array. Here is my unfinished 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 <= number; i++){
     System.out.print(i + "- ");
     movies[i] = input.next();
     System.out.println();
  }
 
    