string java

String name;
 Scanner input = new Scanner(System.in);

        System.out.println("Please enter your name");
        name = input.nextLine();
Ares Azlan