fork(3) 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 = " 543,03,14311.34320 320,3254 ".replaceAll("[,. ]+", "");
  13.  
  14. }
  15.  
  16. long end = System.currentTimeMillis();
  17.  
  18. System.out.println(end-start);
  19.  
  20. }
  21. }
Success #stdin #stdout 1.45s 213888KB
stdin
Standard input is empty
stdout
1430