Test programs for java learning