So erhalten Sie eine String -Eingangslinie in Java

class me{
    public static void main(String[] args) {
        name();
    }
    public static void name(){
        Scanner input = new Scanner(System.in);
        System.out.print("Enter your name :");
        String full_name = input.nextLine();
        System.out.println("hi "+ full_name+", Welcome back !");
    }
Exuberant Echidna