Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

top easiest languages programming to learn

// 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 + ".");
        }
    }
}
Source by codeit.codes #
 
PREVIOUS NEXT
Tagged: #top #easiest #languages #programming #learn
ADD COMMENT
Topic
Name
4+1 =