Guest User

Untitled

a guest
Oct 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. package 影片處理;
  2.  
  3. import java.util.regex.Matcher;
  4. import java.util.regex.Pattern;
  5.  
  6. public class HelloWorld {
  7.     public static void main(String[] args) {
  8.        //System.out.println(args[0]);
  9.        // System.out.println("OVER");
  10.        // System.out.println(TimeZone.ddddd);
  11.      //   String a = nothing;
  12.         Pattern p = Pattern.compile("\\d*");
  13.         Matcher m = p.matcher("ab34ef");
  14.         boolean b = false;
  15.         while(b = m.find()){
  16.             System.out.println(m.start() + m.group());
  17.         }
  18.        
  19.      
  20.     }
  21.  
  22.     enum TimeZone {a,b,c,ddddd}
  23.    
  24.    
  25.    public void do1(){
  26.        do1();
  27.     }
  28.    public void do2(){
  29.        
  30.         throw new NumberFormatException(){         
  31.            
  32.         };
  33.     }
  34. }
Add Comment
Please, Sign In to add comment