• AddThis Social Bookmark Button

    Add to Technorati Favorites

  • 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 :D

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace