Added java code
C1