test java codes