Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassCastException  RSS feed

 
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
Boost this thread!