01: package org.netbeans.test;
02:
03: import java.util.*;
04:
05: public class MyBean {
06:
07: public MyBean() {
08: }
09:
10: public String getTime() {
11: return Calendar.getInstance().getTime().toString();
12: }
13:
14: public static void main(String[] args) {
15: System.out
16: .println("Current time is: " + new MyBean().getTime());
17: }
18: }
|