Let's create a simple repeater program that prints out the exact same line you input. Fill in the blanks to complete the program.
Reading user's input with Scanner
Repeater
Report a typo
Fill in the gaps with the relevant elements
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
sc = new Scanner();
String line = sc.;
System.out.println();
sc.close();
}
} ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.