Add test program for multi-thread in Java