0

I have an html form which contains a String which I need to convert into a double. Then store it in an MS Access database. I tried using:

Double d = Double.parseDouble(String);

But it is throwing a NullpointerException. Can anyone explain why?

1 Answer 1

3

Taking a look at the API reveals that Double.parseDouble throws a NullPointerException if the argument is null.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.