countdown - +hours); Thread.sleep(1000*60*60); hours--;...

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

View Full Document Right Arrow Icon
import java.util.*; import java.awt.*; import java.applet.*; import java.net.*; import java.text.*; import javax.swing.*; i public class countdown{ p boolean reached = false; int hours = 47; while(true){ try{ System.out.println("Number of hours left to finish finals(aka PARTYYY): "
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: +hours); Thread.sleep(1000*60*60); hours--; if(hours==0) reached=true; } catch(Exception e){ } } public static void main(String args){ } }...
View Full Document

This note was uploaded on 02/14/2011 for the course CS 180 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.

Ask a homework question - tutors are online