converting String into long in java
<p>I couldn't convert a <code>String s="45,333"</code> into number like long or double. Can anyone help me to solve the issue.. i have added the model snippet, when i try to run that code it showing <code>NumberFormatException</code>..</p>

<pre><code>public static void main(String args[])
{
long a=85200;
NumberFormat numberFormat=NumberFormat.getNumberInstance();
String s=numberFormat.format(a);
Long l=Long.parseLong(s.toString());
System.out.println("The value:"+s);
System.out.println("The value of long:"+l);
}
</code></pre>

<p>Thanks in Advance</p>
