Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayOutOf Bound Exception

 
shalini gnana
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to convert arraylist(object) into string and then into date..I'm getting the following exception..How to avoid this and make my program run...




 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The problem is difficult to track..because of Variable names and we don't know what is the output when you parsed the XML File, still I can tell you how to track your problem, as per my understanding problem lies in the following part of code :


You can try the following modification:



This is as per my understanding of the code.
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops !! I made the wrong if condition..!! I am sorry..!!
Please modify it :

if( wrk_len < list.size( ) )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic