Java examples for version 1.7