class M { public static void main(String[] a) { System.out.println("Hello World"); } }
The problem with using this as learning material is that the teacher has to treat the majority of the code as "magic" until the student is ready to learn about classes, access permissions, methods, arrays, namespaces, types and so forth.
In many other languages, there's much less boilerplate to handwave away:
In many other languages, there's much less boilerplate to handwave away: