[JAVA] Update the DesignPattern and add .gitignore file

Symptom: Update the DesignPattern and add .gitignore file
Root Cause:N/A
Solution:N/A
Project:N/A
Note:N/A