Here,
I have a string inside a static method. Something like "4.0+5.0i"
and I want to parse it, to -at the end of the day-get a complex number 4+5i
How exactly can I get to this? Spliting d spring into string arrays, then to double, using Double.parseDou ble?
then ....
Please I'm new to programming, and don't want to lose my mind figuring it out, lol
User Profile
Collapse
-
stanlopilolo started a topic Converting a String and getting a Complex number by Parsing the string.in JavaConverting a String and getting a Complex number by Parsing the string.
No activity results to display
Show More