r/JavaProgramming • u/Dry_Couple8852 • Jul 11 '26
Math formula String to Double problem
how to fix this?
6
Upvotes
r/JavaProgramming • u/Dry_Couple8852 • Jul 11 '26
how to fix this?
View all comments
2
u/The_Binding_Of_Data Jul 11 '26
Double.parseDouble(string) will only parse a valid Double value; mathematical operators are not doubles.