Skip to Main Content

New to Java

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!

integer number too large

807601May 1 2008 — edited May 1 2008
When doing this
String ids[] = new String[25];
 String ids[0] = 21806000403720;
I get this
java:1003: integer number too large: 21806000403720
                               String ids[0] = 21806000403720;
No matter if I change the variable type to a Long or double.. I still get the same response. I'm needing to hardcode about 20 numbers of that size into an array, but unsure how to do so, since the values seem to be too large.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2008
Added on May 1 2008
7 comments
1,238 views