import java.util.*;
class Ideone {
public static void main
(String[] args
) { List<String> partes = new ArrayList<String>();
for (int i
= 0; i
< texto.
length(); i
+= 2) partes.
add(texto.
substring(i,
Math.
min(i
+ 2,texto.
length()))); for (int i
= 0; i
< partes.
size(); i
++) System.
out.
println(partes.
get(i
)); }
}
//https://pt.stackoverflow.com/q/257349/101
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgSWRlb25lIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJU3RyaW5nIHRleHRvID0gIjk5RTY1QTc4IjsKCQlMaXN0PFN0cmluZz4gcGFydGVzID0gbmV3IEFycmF5TGlzdDxTdHJpbmc+KCk7CgkJZm9yIChpbnQgaSA9IDA7IGkgPCB0ZXh0by5sZW5ndGgoKTsgaSArPSAyKSBwYXJ0ZXMuYWRkKHRleHRvLnN1YnN0cmluZyhpLCBNYXRoLm1pbihpICsgMix0ZXh0by5sZW5ndGgoKSkpKTsKCQlmb3IgKGludCBpID0gMDsgaSA8IHBhcnRlcy5zaXplKCk7IGkrKykgU3lzdGVtLm91dC5wcmludGxuKHBhcnRlcy5nZXQoaSkpOwoJfQp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yNTczNDkvMTAx