• Archives

  • A simple java program under blue-j environment

    By admin | November 15, 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 😀

    Topics: Java | Comments Off on A simple java program under blue-j environment

    Related Links: