This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
you need to call some batch file..from your java application...
which does the job of opening the new command window...and runs what ever you mentions in batch...... ;)
use
not sure why its happening for you...
check the file you have referring is having correct path or not...try opening the file:///C:/new%20software/col.html in normal browser....
or may be some popup blocker software is blocking....
change your default browser...and disable any popup blockers...and try again...
by the above statement ...the time field of the calculator object never gets changed......but infact the other fields with in the calculator gets initialized ...the otherfileds like dstSavings , useDaysavings etc....
to check this you can actually print the 'cal' object using print statement ...
or you can compare two object outputs....like below
if you run above...the time field would show same time (with few millisecond gap for comiler) for both the instaces like GMT and NZ-CHAT...but the other fileds of the object differ..
the above statement just gets the time field out of the cal object... with out any effect of timezone field..
in the above line time1 would be still same.....but when it formats it makes use of timezone to amend it and print the localized time....for the timezone mentioned
the whole point of try catch is to recover your program from the known errors/exception.... in a program with out try catch ...it would probably crash....
so if exception occours in try block ...the code with in the try block after the exception is skipped....and the relavant action is taken in cathe...but the rest of the program should work normally....