Answer:
Question 1:
int numUsers = scnr.nextInt();
Question 2:
public class OutputExample {
public static void main (String [] args) {
int numCars = 99;
Scannerscnr=new Scanner(System.in);
numCars=scnr.nextInt();
System.out.println("There are "+numCars+" cars");
return;
}
}
Question 3:
import java.util.Scanner;
public class Errors {
public static void main(String [] args) {
int userNum = 5;
System.out.println ("Predictions are hard. ");
System.out.print("Especially ");
System.out.print("about the future.");
System.out.println("Num is: "+userNum);
return;
}
}
Explanation:
In Question 1, the statement int numUsers = scnr.nextInt(); reads a new integer value from the keyboard and assigns it to the variable numUsers.
In question 2, Concatenation is used to format the print output.
In question 3, care is taken to fix each of the syntax errors (missing double quotes, semi-colon, concatenation)