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