Update findPattern.java