import java.util.Scanner; Scanner sc = new Scanner(System.in) System.out.print("Név: ") String name = sc.nextLine() System.out.println("Üdv: " + name) /exit