For java code