import java.util.Scanner;
public class JavaApplication1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner user_input=new Scanner(System.in);
String f_name;
System.out.print("enter first name: ");
f_name=user_input.next();
String l_name;
System.out.print("enter last name: ");
l_name=user_input.next();
String full_name;
full_name=f_name+" "+l_name;
System.out.println("your name: "+full_name);
}
}
output:-
0 التعليقات:
إرسال تعليق