开发者

Why doesn't Java's class library contain a string-join method? [closed]

开发者 https://www.devze.com 2023-04-01 17:28 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

Java's string class has a split method, but no join method. I've hand-written many a join method over the years. Apache has StringUtils. Google has Joiner.

Why isn't a join method part of Java's included开发者_如何学Python class library?


...asks every Java developer who's ever looked for that method.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号