Now You Can Download Google Chrome OS for Free!
 

JSP: Convert LONG <-> STRING

Filed in: Web Development — April 12th, 2004

advertisement

In programming, we always come accross the data type convertion. Here is how to convert String to Long and vise versa in JSP.

long –> String
myStringVariable = String.valueOf(myLongVariable);

String –> long
myLongVariable = Long.parseLong(myStringVariable);

Source: Re: data type conversion | Sun.com

Read also:

  • wazzup_leh
    lcf, how do u fix disabled "save target as" & "print target" options when u right-click on a link?
  • I don't think you can disable it because it is related to the browser.
    the alternative will be disable right click on link.
  • wazzup_leh
    nonono, i mean, for me, those options are now disabled no matter which link i click on, no matter which site. so i was hoping u can tell me wats wrong, hehe.
  • wazzup_leh
  • oh... Content Advisor huh? :) thank you for the information.
blog comments powered by Disqus