Covnert to java