else if(digit == 2)
{
      System.out.print("Enter the name of artist : ");
      String artist=input.nextLine();  
      System.out.print("Enter the song title : ");
      String song = input.nextLine();
      System.out.print("Enter the number of week :");
      int oldWeek =input.nextInt();
      System.out.print("Enter the new number of week :");
      int newWeek =input.nextInt()
}
Hello , I am running a else if loop where if a user enters 2 the following code will run but the problem here seems to be that when it runs it runs 2 System.out.println code together . Here is the sample of my output
This program will display singles that was Number one on charts 
Enter 1 or 2. 2
Enter the name of artist : Enter the song title : 
 
     
    