Added Java example + minor fixes

Added the Java example, and made minor fixes in the comments of the C++
example.
Merge pull request #13 from rosemwahlin/master

New Java example for QueryCondition, minor fixes for C++