JSP: Convert LONG <-> STRING
Filed in: Web Development — April 12th, 2004In 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
Like this post? Please share:
Follow @liewcf on Twitter; Join Facebook page; Subscribe to free newsletter for updates like this article..




