example coffee selection jdk 1.7