A template for running small Java code