This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes yet another ArrayIndexOutOfBoundsException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "yet another ArrayIndexOutOfBoundsException" Watch "yet another ArrayIndexOutOfBoundsException" New topic
Author

yet another ArrayIndexOutOfBoundsException

mrh Peshone
Greenhorn

Joined: Jan 14, 2011
Posts: 3
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3487
    
  13
Are you passing any parameters to your program ? Args contains a list of the command line parameters, so if you don't pass any it will be empty.


Joanne
mrh Peshone
Greenhorn

Joined: Jan 14, 2011
Posts: 3


I guess I am passing the wrong argument!?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18756
    
  40

George Peshone wrote:I guess I am passing the wrong argument!?


An integer ranges from -2147483648 to 2147483647. The number 101010101010 is outside of this range.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
mrh Peshone
Greenhorn

Joined: Jan 14, 2011
Posts: 3
Yes, that was the case. Thanks much.
 
Don't get me started about those stupid light bulbs.
 
subject: yet another ArrayIndexOutOfBoundsException