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
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
Comment