CCL Home Page
Up Directory CCL t016.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 01:54:44 2002 GMT
Page accessed 298 times since Wed Apr 13 16:34:40 2011 GMT