This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Big Integers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Big Integers" Watch "Big Integers" New topic

Big Integers

Cecil Phillip
Ranch Hand

Joined: Nov 05, 2001
Posts: 40
In the java.math package there a BigInteger class where you can create BigInteger objects whcih have no limit on the length of the integer value that it can hold. Does any one know how could you find the modulus of such an object when divided by another such BigInteger object
Junilu Lacar

Joined: Feb 26, 2001
Posts: 4446

Use the BigInteger.mod() method...
For your future reference:
BTW, Welcome to JavaRanch
Junilu Lacar
Sun Certified Programmer for the Java� 2 Platform
[This message has been edited by JUNILU LACAR (edited November 11, 2001).]

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: Big Integers
Similar Threads
Comparable interface
problems with BigInteger
Doubt on interface
convert BigInteger to integer