Update Pattern.java

Pattern.java Prototype