Graphical user interface - واجهة المستخدم

 Graphical user interface - واجهة المستخدم
















import javax.swing.JOptionPane;

public class main {


public static void main(String[] args) {

String name = JOptionPane.showInputDialog("enter your name");

JOptionPane.showMessageDialog(null, "Hello ");

int age = Integer.parseInt( JOptionPane.showInputDialog("enter your ege   "+ name));

JOptionPane.showMessageDialog(null,"relly i dont bilive that you are "+ age);

double height = Double.parseDouble( JOptionPane.showInputDialog("enter your height"+ name));

JOptionPane.showMessageDialog(null,"your heıght ıs "+ height+"  that good");

JOptionPane.showMessageDialog(null,"your name is    " + name + 

"your age is   " + age );


int low = Integer.parseInt( JOptionPane.showInputDialog("hwllo"));


}


}


إرسال تعليق

أضف تعليقك على المقال

أحدث أقدم