Patterns in Java,design model study