-
Trivadis Developer Blog
This is the publication playground for these guys from OIO Trivadis, the Trivadis Group`s Java experts.
Tag cloud
Agile Methods and development Atlassian Tools Build, config and deploy Did you know? Eclipse Universe Groovy and Grails Java and Quality Java Basics Java EE Java modularization Java Persistence Java Runtimes - VM, Appserver & Cloud Java Web Frameworks MDSD Open Source BI Other languages for the Java VM Politics Security SOA / Webservices Spring Universe Web as a Platform XML Universe
Tag Archives: split
Texte aufsplitten und zusammenführen in Java 8 – Teil 2
Nachdem wir uns die verschiedenen Split-Varianten des JDK angeschaut haben, wollen wir in diesem Teil der kleinen Blog-Serie schauen, wie man Datenstrukturen zu Strings zusammenführen kann. Vor Java 8 gab es dazu keine spezielle Funktionalität, man musste dieses Verhalten vielmehr … Continue reading
Texte aufsplitten und zusammenführen in Java 8 – Teil 1
In Java kann man schon seit längerem Texte anhand von Trennzeichen in einzelne Bestandteile zerlegen. Für das Gegenteil, das Zusammenführen von Collections oder Arrays mit benutzerdefinierten Trennzeichen zu einem String (join) gab es bis Java 8 keine geeignete Unterstützung im … Continue reading
Split comma-separated Strings in Java
Shortly, I saw some code like this to work with comma separated lists: The code uses String.split(“,”) to split the strings at commas and String.trim() to remove unwanted whitespaces. But theres’s a much more elegant way to do that in … Continue reading
Splitting and joining strings with Guava
Joining strings from a collection or splitting strings in several elements can be quite difficult in Java. The JDK only offers a split method expecting a regular expression and returning an array. But this quite powerful approach is not easy … Continue reading