fork download
  1. public class HelloWorld {
  2. // Public method that outputs a message to the debug log
  3. public static void sayHello() {
  4. System.debug('Hello, world!');
  5. }
  6. }
  7.  
Success #stdin #stdout #stderr 0.01s 8900KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #HelloWorld
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #HelloWorld (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:2: parse error, expected '}'