I have to convert belong php method to java but i am getting belong error. I am not sure what i am missing. Is there any idea how can i convert that php code to java or is t