Example Patterns in Java