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

ClassCastException

 
Adamu Yifru
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does the following code give me classCastException error
some LinkedList
Integer.parseInt(nonRTarrivalTime.getFirst())
and
((Integer)nonRTarrivalTime.getFirst()).intValue()
I have tried both and they give me the same error.
thanks in advance.
 
Adamu Yifru
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind I casted it to a string and then to int.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic