Question: 1 . Declare an array of Strings, called cd with a size of 6 . 2 . Fill the array by creating a new song
Declare an array of Strings, called cd with a size of
Fill the array by creating a new song with the title and artist and storing it in the appropriate
position in the array. You need to read this information from the file Classics.txt that is
provided.
Classics.txt
Download Classics.txt
You will need to read the title and the artist and merge them together before storing
them into the array. You will need to merge the word by in between the two strings.
Print the contents of the array to the console and to an output file.
Compile, debug, and run.
Your output should be as follows:
Contents of Compact Disc
Ode to Joy by Bach
The Sleeping Beauty by Tchaikovsky
Lullaby by Brahms
Canon by Bach
Symphony No by Beethoven
The Blue Danube Waltz by Strauss
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
