Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

yet another ArrayIndexOutOfBoundsException

 
mrh Peshone
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
mrh Peshone
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I guess I am passing the wrong argument!?
 
Henry Wong
author
Marshal
Pie
Posts: 20995
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
mrh Peshone
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that was the case. Thanks much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic