java implement the tiger