KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > MyBean


1 package org.netbeans.test;
2
3 import java.util.*;
4
5 public class MyBean {
6     
7     public MyBean() {
8     }
9
10     public String JavaDoc getTime() {
11         return Calendar.getInstance().getTime().toString();
12     }
13     
14     public static void main(String JavaDoc[] args) {
15         System.out.println("Current time is: "+new MyBean().getTime());
16     }
17 }
18
19
20
21
22
23
Popular Tags