java code testing.