Try out Java's BigInteger class.