import javax.swing.JOptionPane;
public class JavaApplication2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String first_name;
first_name = JOptionPane.showInputDialog("first Name"+" enter first name");
String last_name;
last_name = JOptionPane.showInputDialog("last name");
String full_name;
full_name ="your name "+ first_name+" "+last_name;
JOptionPane.showMessageDialog(null,full_name,"name",JOptionPane.WARNING_MESSAGE);
// TODO code application logic here
}
}
output:-
0 التعليقات:
إرسال تعليق