Update pattern.java
Merge pull request #1 from samridh89/patch-1

Update pattern.java