/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String input
= "1 dog \n\n 2 cat"; String[] output
= input.
split("\\n\\n"); for(int i=0; i < output.length; i++)
{
System.
out.
println("----------------------------------------"); System.
out.
println("Match: " + output
[i
]);
for(int j=0; j < output[i].length(); j++) {
System.
out.
println("ASCII: " + output
[i
].
charAt(j
) + ": " + (int)output
[i
].
charAt(j
) ); }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwogCmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwogCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3RyaW5nIGlucHV0ID0gIjEgZG9nIFxuXG4gMiBjYXQiOwoJCVN0cmluZ1tdIG91dHB1dCA9IGlucHV0LnNwbGl0KCJcXG5cXG4iKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4ob3V0cHV0KTsKCQlmb3IoaW50IGk9MDsgaSA8IG91dHB1dC5sZW5ndGg7IGkrKykKCQl7CgkJCVN5c3RlbS5vdXQucHJpbnRsbigiLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSIpOwoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIk1hdGNoOiAiICsgb3V0cHV0W2ldKTsKIAoJICAgICAgICBmb3IoaW50IGo9MDsgaiA8IG91dHB1dFtpXS5sZW5ndGgoKTsgaisrKSB7CiAgICAgICAgCQlTeXN0ZW0ub3V0LnByaW50bG4oIkFTQ0lJOiAiICsgb3V0cHV0W2ldLmNoYXJBdChqKSArICI6ICAiICsgKGludClvdXRwdXRbaV0uY2hhckF0KGopICk7CgkgICAgICAgIH0KCQl9CiAKCX0KfQ==