For sample java code