java function calculate sum October 10, 2017 Java No comments class sum { int num1,num2; int add() { num1=19; num2=20; return num1+num2; }} public class function { public static void main(String args[]) { sum p = new sum(); System.out.println("The sum is ="+p.add()); }} Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment