Writing Java code: Creating an application

public class app {
         public static void main(String[] args) 
              {
                System.out.println("Hello world"); }
                   }

If you are new to Java, this might look strange to you. The idea here is that this application will print out the text “Hello world” when you compile and run it. for example, here`s how it looks in a DOS window under /windows:

c:\>java app
Hello world