FileDocCategorySizeDatePackage
Calcs.javaAPI DocExample735Wed Oct 03 15:24:26 BST 2001myprojects.calcs

Calcs

public class Calcs extends Object

Fields Summary
int
ivar1
int
ivar2
Constructors Summary
Methods Summary
public intadd(int p1, int p2)

		return p1+p2;
    
public static voidmain(java.lang.String[] arg)

    	
    	float Ans;
    	Calcs myCalc = new Calcs();
    	
    	Ans = myCalc.add(10,15);
    	
    	System.out.print("Answer is = " + Ans + '\n");