• Post Reply Bookmark Topic Watch Topic
  • New Topic

convert a String to Long  RSS feed

 
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?
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Long longValue = new Long("1234567890");

Best of Luck,

Nate
 
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.
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!