fork(7) download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. long start = System.currentTimeMillis();
  9.  
  10. for (int i=0; i<300000; i++)
  11. {
  12. String a = " 54,303,14311.34320 32,03254 ".replaceAll("[,. ]*", "");
  13. }
  14.  
  15. long end = System.currentTimeMillis();
  16.  
  17. System.out.println(end-start);
  18.  
  19. }
  20. }
Success #stdin #stdout 3.35s 213824KB
stdin
Standard input is empty
stdout
3363