Join Peggy Fisher for an in-depth discussion in this video Challenge: Movie list, part of Learning Java.
- Okay, it's time once again for our challenge.…This challenge is designed to reinforce the skills…you learned about classes and objects.…In this challenge, you'll want to create a movie class…that contains the following information:…the name of the movie, the movie rating,…such as G for general audience,…PG for parental guidance,…PG-13, etc,…the year the movie was made, and the run time in minutes.…You'll need instance data for each…piece of information I just mentioned.…
The name of the movie, the rating,…the year and the run time,…as well as a public interface.…Remember, when creating classes, it is helpful to provide…accessor and mutator methods for each…piece of data mentioned above,…but this is not required for this challenge.…You will need a constructor, though.…In your main program, you ask the user…to enter the information about their favorite movie,…including the title, the rating, the year and the run time,…then create a movie object with the information.…Finally, print it out using a two String method…
- Downloading and exploring NetBeans
- Understanding Java basics: data types, strings, arrays, and more
- Controlling flow with functions and loops
- Creating classes
- Sorting and searching arrays
- Manipulating files
- Handling errors
- Building GUIs
Skill Level Beginner
1. Getting Started
2. Java Basics
3. Flow of Control
4. Classes and Objects
5. Beyond the Basics
6. File Manipulation
7. Graphical User Interface Basics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.