Repeater

Report a typo

Let's create a simple repeater program that prints out the exact same line you input. Fill in the blanks to complete the program.

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();
  }
}
___

Create a free account to access the full topic