Java code added