Sunday, January 22, 2012

Method With return Value


public int add2number(){
        int x=10,y=20,result=0;
        result=x+y;
       
        return result;
}

No comments:

Post a Comment