public class Water { // simulate boiling water public void boilWater() { System.out.println("Boiling water for 20 seconds"); try { Thread.sleep(20000); } catch (InterruptedException ie) { } } }