This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have 2 classes that I am using from the book Head First Java.
Here is the 1st class
And here is my other class that I guess should reference my first class
How do I get The MovieTestDrive class to get the info from the Movie class using the manual way (text edit and terminal on the mac) and the eclipse program? In eclipse i try to run them both at the same time, but I just get the output "Playing the movie". I thought it would tell me the name, genre, and rating as well. Actually, I guess it will only show the Playing the movie, but what is the point of the other information then?
Just to add, it would be better if your class Movie overrides the toString() method of the Object class. Then you can simply call this method on each movie object to get its information, simple enough?
Don't walk as if you rule the world, walk as if you don't care who rules it...