Simple Java examples