Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Friday, 21 June 2013

JAVA PROGRAM: TO CALCULATE AREA OF CIRCLE

Java Program

CODING OF CALCULATE AREA BUTTON(jButton1)

        double area,r;
        r=Double.parseDouble(jTextField1.getText());
        area=3.14*r*r;
        jTextField2.setText(" "+area);


CODING OF CLEAR BUTTON(jButton2)

        jTextField1.setText(" ");
        jTextField2.setText(" ");
   

CODING OF EXIT BUTTON(jButton3)   

        System.exit(0);


Java Program Coding
Java Program Coding
Java Program Running
Java Program Running

For any query or suggestion please comment below...

No comments:

Post a Comment