A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
String to Long function?
Bill Ceglia
Ranch Hand
Joined: Dec 13, 2001
Posts: 30
posted
Jan 29, 2002 14:30:00
0
Is there a
String
to Long function in the J2ME API, I have not seen one and was curious if one existed? If not, what is the best procedure to perform this?
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
Jan 29, 2002 14:58:00
0
try{ Long myLong = Long.parseLong(myString); } catch (NumberFormatException e){ // do whatever }
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: String to Long function?
Similar Threads
Strings
String Display Using DrawText
array store exception
var-args overloading compiler error: ambiguous
Registry Values
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter