Added New Java code