I am trying to do a patter matching, where the user will input as a file and then i would take it in and set it as a pattern, another file will be enter as a matcher, i ran into this problem
Pattern p = Pattern.compile(scanner);//where scanner is the actual file being read.
the error is that
TextScanner.java:23: cannot find symbol
symbol : method compile(java.util.Scanner)
location: class java.util.regex.Pat
Pattern p = Pattern.compile(scanner);//where scanner is the actual file being read.
the error is that
TextScanner.java:23: cannot find symbol
symbol : method compile(java.util.Scanner)
location: class java.util.regex.Pat