Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package 影片處理;
- import java.util.regex.Matcher;
- import java.util.regex.Pattern;
- public class HelloWorld {
- public static void main(String[] args) {
- //System.out.println(args[0]);
- // System.out.println("OVER");
- // System.out.println(TimeZone.ddddd);
- // String a = nothing;
- Pattern p = Pattern.compile("\\d*");
- Matcher m = p.matcher("ab34ef");
- boolean b = false;
- while(b = m.find()){
- System.out.println(m.start() + m.group());
- }
- }
- enum TimeZone {a,b,c,ddddd}
- public void do1(){
- do1();
- }
- public void do2(){
- throw new NumberFormatException(){
- };
- }
- }
Add Comment
Please, Sign In to add comment