Presenting Credits
In The Piano, Ada McGrath Stewart was thrown into unfamiliar territory when she moved from Scotland to New Zealand to marry a stranger who didn’t appreciate her music. You might have felt lost yourself with some of the topics introduced during this hour.
Next, to reinforce the string-handling features that have been covered, you write a Java program to display credits for a feature film. You can probably guess the movie.
Return to the Java24
project in NetBeans and create a new Java class called Credits
. Enter the text of Listing 6.1 into the source editor and save the file when you’re done.
1: class Credits { 2: public static void main(String[] args) { 3: // set up film information ...
Get Sams Teach Yourself Java™ in 24 Hours, Sixth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.