I know this is a bit of a newbie question, but are there equivalents to C#'s string operations in Java?
Specifically, I'm talking about String.Format and String.Join.
String.Format
String.Join
The Java String object has a format method (as of 1.5), but no join method.
format
join
To get a bunch of useful String utility methods not already included you could use org.apache.commons.lang.StringUtils.
1.4m articles
1.4m replys
5 comments
57.0k users