import java.util.Calendar; import java.util.Date; import org.pimpware.Test; public class PeeJayStart { public static void main (String args[]) { // ofcourse hello world System.out.println("Hello World"); // date stuff Calendar cal = Calendar.getInstance(); System.out.println("Got me a calendar"); Date dt = cal.getTime(); System.out.println("The time is using Date:" + dt.toString()); System.out.println("The time is using Calendar:" + cal.get(Calendar.HOUR) + ":" + cal.get(Calendar.MINUTE) + ":" + cal.get(Calendar.SECOND) ); // custom classes Test t = new Test(); int result = t.runme(4); System.out.println("Got me a result:" + result); // exceptions try { int a= 1; int b= 0; int c = a/b; } catch (Exception e) { System.out.println("We caught an exception: " + e.toString() ); } // some lengthy stuff so you will see i'm not faking it try { for (int i=0;i<10;i++) { Thread.sleep(1000); System.out.println("Iteration "+ i); } } catch (InterruptedException iex) { } } }