for testing java code