Big Integer UPDATED

I cannot link My CalculatorProgram.java with my Applet.

I created a package for both of them , but Netbeans says that there is no main class .package Calcultor;

import java.math.BigInteger;

publicclass CalculatorProgram{

private BigInteger IntegerOne;

private BigInteger IntegerTwo;

//

public CalculatorProgram(){this(BigInteger.ZERO, BigInteger.ZERO);}

public CalculatorProgram(BigInteger IntegerOne, BigInteger IntegerTwo){

this.IntegerOne= IntegerOne;

this.IntegerTwo= IntegerTwo;

}

//

public BigInteger manipulate(){return IntegerOne.add(IntegerTwo);}

public BigInteger subtract(){return IntegerOne.subtract(IntegerTwo);}

public BigInteger multiply(){return IntegerOne.multiply(IntegerTwo);}

}

[1683 byte] By [Zoigberga] at [2007-11-27 11:07:08]
# 1

If it's an applet then you don't need a main class, you just run it from your browser. Load the html that runs the applet into your browser.

hunter9000a at 2007-7-29 13:20:06 > top of Java-index,Java Essentials,New To Java...
# 2

Follow this tutorial to create an applet using NetBeans

http://www.netbeans.org/kb/50/tutorial-applets.html

ChuckBinga at 2007-7-29 13:20:06 > top of Java-index,Java Essentials,New To Java...