Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.ClassCastException: java.math.BigDecimal

843841May 5 2006 — edited May 8 2006
I have written a code
 Integer objname= (Integer)Result.get(i+2);
	int j=objname.intValue();
	System.out.println("j value" +j);
The value in Result.get(i+2) is int and contains either 1 or 0

But it showing the following exception
java.lang.ClassCastException: java.math.BigDecimal

suggestions are invited to improve the code
Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2006
Added on May 5 2006
2 comments
99 views