1 2 3 4 5
import java.util.*; Scanner sc = new Scanner(System.in); int number = sc.nextInt(); String name = sc.nextLine();
You can clone a snippet to your computer for local editing. Learn more.