• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

convert a String to Long

 
Liz Brown
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to convert a string obj to Long obj in java?
 
Nathan Hook
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Long longValue = new Long("1234567890");

Best of Luck,

Nate
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct place for this sort of question is the Java in General (beginner) forum. I'm moving this there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic