the note of java-design-pattern and code