Top einfachste Sprachen Programmierung zum Lernen

// Enter user's name
import java.util.Scanner;

class input {
    public static void main(String[] args) {
        try (Scanner input = new Scanner(System.in)) {
            System.out.print("Enter your first name: ");
            String firstName = input.next();

            System.out.print("Enter your last name: ");
            String lastName = input.next();

            System.out.println("Hello, " + firstName + " " + lastName + ".");
        }
    }
}
Layz