Simply put, this blog is a dumping ground for things I find interesting or worth remembering relating to Java, programming, web, lean, agile, etc, etc.
Monday, August 18, 2014
Splitting a String by Length or Position
Here is a simple method to split a string into a list of substrings based on length. For example, given the string "12345678901", if we were to split by 2 we would expect a result like {"12", "34", "56", "78", "90", "1"}.
No comments:
Post a Comment