Elementary Java examples