Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

Compare three ways to clear a String in java

Language: Editor: Layout:
+ ] Show input
Compilation time: 0.71 sec, absolute running time: 2.94 sec, cpu time: 2.9 sec, memory peak: 103 Mb, absolute service time: 3.66 sec 
edit mode |  history  | discussion
Three ways to clear a string...
using delete: 656
using new: 1353
using setLength: 776