找不到java.util.regex.*;包,为甚么???
报错信息如下!!!???
D:\sms_server\test>javac test1.java
test1.java:1: package java.util.regex does not exist
import java.util.regex.*;
^
test1.java:7: cannot resolve symbol
symbol : class Pattern
location: class test1
Pattern p = Pattern.compile("王八蛋|傻B|NNDT");
^
test1.java:7: cannot resolve symbol
symbol : variable Pattern
location: class test1
Pattern p = Pattern.compile("王八蛋|傻B|NNDT");
^
test1.java:8: cannot resolve symbol
symbol : class Matcher
location: class test1
Matcher m = p.matcher("王八蛋sdr 傻B");
^
4 errors