Guava - simple recipes to make your Java code cleaner, 1st part

#lifelongprogrammer

Guava - simple recipes to make your Java code cleaner, 1st part


Solr Search Result (attribute-to-tag) customization using XsltResponseWriter | myjeeva blog

Remove The Fluff With Google Guava

(#lifelongprogrammer) Remive the fluff with Google Guava


Split string and trim every element

Guava rocks.Use CharMatcher and Splitter.
static Splitter split = Splitter.on(CharMatcher.anyOf("#")).trimResults().omitEmptyStrings();
static Joiner join = Joiner.on(", ");
System.out.println(join.join(split.split(test)));
http://stackoverflow.com/questions/7987149/split-string-and-trim-every-element