readthefuckingmanual.net

[SOLVED] java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer

Error added: 2008-05-24T14:30:57Z

2 people waiting for the answer...

7 answers found.

Answer 1096 (85.71429% helpful)

Integer intValue = new Integer(bigInt.intValue());
Permalink

Answer 588 (85.71429% helpful)

int foo = bigInt.intValue();
Permalink

Answer 624 (44.444443% helpful)

1
Permalink

Answer 1777 (33.333332% helpful)

google it
Permalink

Answer 1789 (33.333332% helpful)

65294623820
Permalink

Answer 1778 (20.0% helpful)

google it
Permalink

Answer 2205 (0.0% helpful)

int result = bigInteger.intValue();
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: