KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Hello


1 public class Hello {
2     private int i;
3     
4     public static void main(String JavaDoc[] args) {
5         System.out.println("Hello");
6         Hello h = new Hello();
7         h.run();
8     }
9     
10     private void run() { for (this.i = 0; this.i < 10; this.i++) { System.out.println(this.i * this.i); } }
11     
12 }
13
Popular Tags