This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
tstamp = new Date().toString(); y = Double.parseDouble(tstamp);
When I run this, I get the error message:
java.lang.NumberFormatException: For input string: "Sun Dec 12 01:24:20 EST 2004" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1207) at java.lang.Double.parseDouble(Double.java:220)
I have gone through my books and searched the internet but everything I try gives me the same error message. Any help would be appreciated- even an article link that describes how to do this.