By Djkiou
via javacodegeeks.com
Published: Dec 07 2012 / 05:00
So I recently wrote a post about good old reliable Apache Commons StringUtils, which provoked a couple of comments, one of which was that Google Guava provides better mechanisms for joining and splitting Strings. I have to admit, this is a corner of Guava I’ve yet to explore. So thought I ought to take a closer look, and compare with StringUtils, and I have to admit I was surprised at what I found. Splitting strings eh? There can’t be many different ways of doing this surely?
Comments
Jonathan Fisher replied ago:
Honestly, Google should just rewrite the entire Java standard SDK classes! It'd be pretty awesome to have gRT.jar instead of rt.jar (Haha). I've always thought the biggest problem with Java is have the weight of the legacy codebase (StringBuilder vs StringBuffer) hanging around.
Voters For This Link (15)
Voters Against This Link (2)