To get interger from the user we use "new Scanner(System.in).nextInt();". in the simiral way can we write "new Scanner(System.in).nextString();".