Need assistance on the errors occuring. Retype the statements, correcting the sy
ID: 3906508 • Letter: N
Question
Need assistance on the errors occuring.
Retype the statements, correcting the syntax errors. System.out.println("Num: " + songnum) System.out.println(int songNum); System.out.println(songNum songs"); 5, the Note: These activities may test code with different test values. This activity will perform two tests: the first with songNum second with songNum- 9. See How to Use zyBooks. 1 inport java.util.scanner 3 public class Errors f public static void main (String[ args) ( int songNu; ongNum5; syst? . out . printin("Num : " songnum); + 9 System.out.println(int songNum); 10 System.out.println(songNum songs * Your solution goes here 14 Run Failed to compile rrors.java:9: error.class expected System.out.printin(int songNum) rrors.java:9: errorexpected System.out.printin (int songNum) rrors.java:10: exzor:expected System.out.printin (songNum +" song 3 errorsExplanation / Answer
public class Errors { public static void main(String[] args) { int songNum; songNum = 5; System.out.println("Num: " + songNum); System.out.println(songNum); System.out.println(songNum + " songs"); } }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.