ERROR! What does this error mean?
807603Dec 2 2007 — edited Dec 3 2007Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal repetition
{adj}
at java.util.regex.Pattern.error(Pattern.java:1713)
at java.util.regex.Pattern.closure(Pattern.java:2775)
at java.util.regex.Pattern.sequence(Pattern.java:1889)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.compile(Pattern.java:1460)
at java.util.regex.Pattern.<init>(Pattern.java:1133)
at java.util.regex.Pattern.compile(Pattern.java:823)
at java.lang.String.replaceFirst(String.java:2147)
at MadLibs.MasterListandStories(MadLibs.java:31)
at MadLibsMain.main(MadLibsMain.java:6)
I dont get a compile error, but if i try to replace a word in a sentence w/ something the user types in i get the above error