+ 4
When you import Scanner and create a instance of class scanner this reads your keyboard input. import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println(scanner.nextLine()); } }
30th Oct 2017, 9:04 AM
D_Stark
D_Stark - avatar