File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes convert a String to Long Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "convert a String to Long" Watch "convert a String to Long" New topic

convert a String to Long

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
How to convert a string obj to Long obj in java?
Nathan Hook
Ranch Hand

Joined: Jan 10, 2005
Posts: 81

Long longValue = new Long("1234567890");

Best of Luck,

Jason Menard

Joined: Nov 09, 2000
Posts: 6450
The correct place for this sort of question is the Java in General (beginner) forum. I'm moving this there.
It is sorta covered in the JavaRanch Style Guide.
subject: convert a String to Long
Similar Threads
Getting size of an array thru EL
convert long or String to Number
request.getParameter...not taking Long
TypeFactory can it be done in java?
How to get the actual value from paramaters Map