test program for Java