CCL Home Page
Up Directory CCL t017.html
slide

Jan K. Labanowski: "Tomcat, servlets, JSPs and other friends"

Java continued

The Hello Word in Java is:
public class HelloWorld {
   public static void main (String [] args) {
       System.out.println("Hello World");
   }
}
You compile it as:
   javac HelloWorld.java
and run it as:
   java HelloWorld
and as a result, this Java application will respond with a string HelloWorld in your terminal window.

Modified: Wed Feb 13 20:23:37 2002 GMT
Page accessed 2575 times since Mon Feb 3 15:33:41 2003 GMT