Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kapilraj2436/8410f35119e8b35fc137cd234052e5ad to your computer and use it in GitHub Desktop.
Save kapilraj2436/8410f35119e8b35fc137cd234052e5ad to your computer and use it in GitHub Desktop.
Problem :- Error Occured when compilling my code which gives error -
Method parseDouble(java.lang.String) not found in class java.lang.Double.
double _contractNett = Double.parseDouble(_contractNet);
Solution :- After Reaserch I found that the runtime environment I was using belongs to an older version of Java, a pre-1.2 release for sure. The method 'parseDouble' was first introduced in Java 1.2. So if enyone is using Older version or Java 1.1 then he can Solve this Problem like this ....... :--
double _contractNett = Double.valueOf(_contractNet).doubleValue();
That's It.... Problem solved.
I hope It will help. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment