GoFish program in Java.