Custom Code Java examples