If it's from the command line like this:
java MyComplexProgram 2.3i+4.7
then args[0] in the main method will be the String:
2.3i+4.7
Do you know how to use the String.indexOf() method to find the indecies of the 'i' and the '+' and how to use the String.substring() method with those indecies to get the String values of "2.3" and "4.7"?
If not, check the javadoc for the String class. It's better to read up on it yourself than have someone in a forum tell you.
------------------
WebNelly.com
Java/XML Web Development
Check it out!
http://www.webnelly.com