Add java ending to example files