Continue Python Function Example Code Java