Type the statements. Then, correct the one syntax error in eachstatement. Hints: Statements end in semicolons, and string literalsuse double quotes.
CHALLENGE ACTIVITY 2.3.1: Basic syntax errors. Type the statements. Then, correct the one syntax error in each statement. Hints: Statements end in semicolons, and string literals use double quotes. System.out.printl ("Predictions are hard."); '); System.out.print("Especially System.out.println("about System.out.println("Num is: 417856.2527814.qx3zqy7 1 import java.util.Scanner; 2 3 public class Errors { 4 5 7 8 9 10 11 12} the future."). "1 userNum); } public static void main(String[] args) { int userNum; userNum = 5; *Your solution goes here */ Feedback? 1 test passed All tests passed
Type the statements. Then, correct the one syntax error in each statement. Hints: Statements end in semicolons, and stri
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am