fork(1) download
  1.  
  2. class Ideone
  3. {
  4. public static void main (String[] args) throws java.lang.Exception
  5. {
  6. long time = System.currentTimeMillis();
  7. String s = "ABC";
  8. for (int i = 0; i < 10000000; i++) {
  9. StringBuilder builder = new StringBuilder(s);
  10. String t = builder.toString();
  11. }
  12. System.out.println(System.currentTimeMillis() - time);
  13. }
  14. }
Success #stdin #stdout 1.08s 320256KB
stdin
Standard input is empty
stdout
970