JAVA help :(

Hooligan

Gawd
Joined
Aug 7, 2001
Messages
834
Hi,

I'm trying to do this java program for class where it calls for the package java.math.BigInteger but whenever i put it on top of my code, it gives me an error? (class or interface expected).

Setup:

Project/Package name: bigintegerpkg
New main class: BigIntegerTest
Save all
run -> new -> browse (...) -> chose the file BigIntegerTest -> ok

after setting it up, there's package bigintegerpkg; but then i gotta do this:
1. Construct and initialize (Instantiate) two BigInteger objects named n1 and n2.
n1 = 100000000000000
n2 = -200000000000000
Example: BigInteger n1 = new BigInteger("100000000000000");

that's when I need java.math and don't know how to load it (again, it gives me an error)

I have to use Jbuilder Foundation 2005 for class if that helps...

thanks if u can help me. AIM: BeanDip2112 or MSN: [email protected]
 
Back
Top