0

Is there anyway in Java to split a string into a list n characters at the time? Pseudo-code example:

n = 2;
String s = "ABCDEFGH"
list = ["AB", "CD", "EF", "GH"] // because n = 2
Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95
Mo Pie
  • 41
  • 5

0 Answers0