Programmation des langues les plus faciles à apprendre

// 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