H
H
hHup2018-04-05 09:10:27
Java
hHup, 2018-04-05 09:10:27

Converting String to Double?

The user enters a number in JTextFiled, how do I convert it to Double, because in JTextFiled it's just a Strring, and I also need to handle an error if he entered the wrong data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2018-04-05
@alexey-m-ukolov

Double parseDouble(str);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question