add some java code