// JSimp1.txt // 1 declaration, 2 functions, and a main body String greeting = "Hello, World!"; func int add(int x, int y) { return x + y; } end func int fact(int n) { if (n <= 1) return 1; else return n*fact(n-1); } end main System.out.println(greeting); System.out.println("fact(6) == " + fact(6)); System.out.println("and bye bye");