I ran into a problem that I don't understand. nextLine() should be for sentences, right?
System.out.println("Enter film's name");
a = scan.nextLine();
System.out.println("What number did the film released?");
b = scan.nextInt();
System.out.println("Who's the director?");
c = scan.nextLine();
System.out.println("How long is the film in minutes?");
d = scan.nextInt();
System.out.println("Have you seen the movie? Yes/No?");
e = scan.next();
System.out.println("Mark for the film?");
f = scan.nextDouble();
It runs correctly till the releasing date, and then it shows "Who is the director" and "How long is the film" together and doesn't work like it supposed to work.
How can you use nextLine(); and why doesn't it work for me?