202k views
4 votes
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 the future.").
System.out.println("Num is: " - userNum);

User Parap
by
3.4k points

2 Answers

3 votes

Answer:

print("Predictions are hard.")

print("Especially about the future.")

user_num=5

print('user_num is:', user_num)

Step-by-step explanation:

there needs to be a comma between num is: ' and user_num

User Hilar AK
by
3.2k points
3 votes

Answer:

print("predictions are hard");

print("Especially");

println(about the future)

Num is :user Num.

User Johnwayner
by
3.7k points