Java Program Design

"Hello World" application in Java vs NetRexx
 
Java code
NetRexx code

 public class Hello {
  public static void main(String argv[]) {
   System.out.println("Hello World"); }
 }
 
 say "Hello World from NetRexx"

 

"Hello Web" applet in Java vs NetRexx
 

Java code
NetRexx code

 public class HelloWeb 
       extends java.applet.Applet
  {
     public void paint( java.awt.Graphics gc ) {
      gc.drawString("Hello Web!", 125, 95 );   }
  }
 
 class HelloWebNR extends Applet
   method paint(g=Graphics)
     g.drawString("Hello NR!", 125, 95)