Question: 34 Linda Shepherd Using initializer lists, declare two arrays called song and artist, then a for loop to print the songs and their artists from
34 Linda Shepherd Using initializer lists, declare two arrays called song and artist, then a for loop to print the songs and their artists from the arrays For the final output, use printf(), double-line advance before Song, so you won't line advance at the end of Artist. Linda Shepherd *** Linda Shepherd: Output*** Song: Somebody That I Use to Know Artist: Goyte Song: We Are Young Artist: Fun String song = new String($ // Linda Shepherd: Code the song array with the songs in the order listed in the output. String[] artist = new String{ // Linda Shepherd: Code the artist array with the artists in the order listed in the Output. for(int i : song) { System }// Linda Shepherd: END for QUESTION 35 // Linda Shepherd: Code the for header using i. // Linda Shepherd: 1st line of the print statement prints the song. // Linda Shepherd: 2nd line is concatenated and prints the artist and lists the arguments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
