Add examples in Java 6
Merge pull request #7 from vidaha/vida/chtr1java6

Add examples in Java 6