void pause(int milliseconds)
{
try
{
Thread.sleep(milliseconds);
}
catch (InterruptedException e) {}
}
try
{
num = Double.valueOf(string1);
}
catch (NumberFormatException e)
{
System.out.println("Bad number!");
num = new Double(0);
}
finally
{
System.out.println("num is: " + num);
}