You have got a public class called MovieTestDrive, so that ought to be in a file called MovieTestDrive.java.
You have a non-public (correctly called default access, though a lot of people prefer to say “package-private access”) class called Movie. You can put that inside a file called Movie.java, or inside the MovieTestDrive.java file. If the Movie class is only used by MovieTestDrive, putting the two in the same file sounds logical. You may be able to put Movie elsewhere, in a different .java file, but I wouldn’t recommend that; if it is in a file called XXX.java, you have to write javac XXX.java bfeore you compile the
test drive file. Of course, if you change Movie to be public, all that will change.
Is this page 37 in HFJ? There appears to be a line in my copy which you have missed out. After two.rating and before Movie three =. You might get more output if you had that line
You would get a more informative output if you added a toString method to the movie class
Add lines like this to the main method, after you set up all the details for the movie