added java code to the pass variable