Java examples