Step1: Create a new project
Step 2 formnya design like the one in the picture left ..
step3.yaitu stage of coding ..
To codingnya please see and understand ..
how to insert the coding double click on btn added:
/ / listing of the program is
float n1, n2, n3;
n1 = Float.parseFloat (angka1.getText ());
n2 = Float.parseFloat (angka2.getText ());
n3 = n1 + n2;
hasil.setText (String.valueOf (n3));
/ net program listing go round:
angka1.setText ("");
angka2.setText ("");
hasil.setText ("");
/ / exit program listing
System.exit (0);
if it is finished please Run and please you develop more, such as adding btn less, times etc ...
Regards Admin ..: D
0 komentar:
Posting Komentar