Retype the statements, correcting the syntax errors.
CHALLENGE ACTIVITY Retype the statements, correcting the syntax errors. System.out.println("Num: " + songnum); System.out.println(int songNum); System.out.println(songNum" songs"); Note: These activities may test code with different test values. This activity will perform two tests: the first with songNum = 5, the second with songNum = 9. See How to Use zyBooks. 2.3.2: More syntax errors. 417856.2527814.qx3zqy7 1 import java.util.Scanner; 2 3 public class Errors { 4 5 6 7 8 9 10 11 12} Run public static void main (String[] args) { int songNum; songNum = 5; *Your solution goes here */ } 1 test passed All tests passed Feedback?
Retype the statements, correcting the syntax errors.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am