(a)
Output "hello, world"

(b)
Routine myFirstRoutine(none)
 -- Does outputs the message "hello, world"
 Start
   Output "hello, world"
EndRoutine myFirstRoutine

(c)
Import JJIO
Class MyFirstClass
 --Name: userID goes here
 Routine myFirstRoutine(none)is public
  -- Does outputs the message "hello, world"
  Start
    Output "hello, world"
 EndRoutine myFirstRoutine
EndClass MyFirstClass

Example 1: JJ versions of the classic "Hello, World" program.

Back to Article