• Archives

  • Archive for the ‘Java’ Category

    A simple java program under blue-j environment

    Thursday, November 15th, 2007

    class calculate


       public void cal(double a,double b)


    double c=0;

    c= a+b;

    System.out.print(“After adding the two number the result was  ” + c);



    This program will accept two numbers and give the result after adding both the numbers 😀