This is the classic hello world program written in Ada for the JVM (Java Virtual Machine)
Package Specification
with java.lang.String;
package JMain is
procedure main(Args : java.lang.String.String_Array);
end;
Package Body
with java.lang.String;
with java.lang.System;
with java.io.PrintStream;
package body JMain is
procedure main(Args : java.lang.String.String_Array) is
begin
java.io.PrintStream.println(java.lang.System.Stdout, "Hello World!");
end main;
end JMain;
|