Wait - try Thread.currentThread.sleep(s 1000 catch( e e.printStackTrace}

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Wait { public static void oneSec() { try { Thread.currentThread().sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } public static void manySec(long s) {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: try { Thread.currentThread().sleep(s * 1000); } catch (InterruptedException e) { e.printStackTrace(); } } }...
View Full Document

This note was uploaded on 12/20/2009 for the course COMP SCI 026 taught by Professor Unknown during the Spring '07 term at UWO.

Ask a homework question - tutors are online