[Brian Jones]
> I've tried to use code like the following with Japhar.
[Float(String) test]
I tried the following, and it worked for me.
public class FloatStringConvTest
{
public static void main(String args[]) {
String fstr = new String("3.14");
try {
Float f = new Float(fstr);
System.out.println("PASSED: 3.14 = " + f);
} catch (NumberFormatException nfe) {
System.out.println("FAILED: caught exception: " + nfe.getMessage());
}
}
}
Here are the result:
> CLASSPATH=. japhar FloatStringConvTest
PASSED: 3.14 = 3.14
I'll add the test to the testsuite.
--
##> Petter Reinholdtsen <## | [EMAIL PROTECTED]
O- <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/ | Go Mozilla, go! Go!