Posted by: JavaBeans September 17, 2006
Login in to Rate this Post:
0
?
Nas,
You don't need an array to iterate through a value if you use String capabilities in Java.
Kalank,
Since String is immutable and no thread-safety is needed I'd use StringBuilder instead. Try iterating 10000 times using a String VS StringBuilder and you'll notice the efficiency aspect of it.