/* 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
{
{
int firstSpace = hora.indexOf(" ");
String temp
= replaceCharAt
(hora, firstSpace,
"");
int lastSpace = temp.lastIndexOf(" ");
String horaSemEspacos
= replaceCharAt
(temp, lastSpace,
"");
System.
out.
println(horaSemEspacos
); }
return s.substring(0, pos) + c + s.substring(pos + 1);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmluZyBob3JhID0gIjggaHJzIDIgbWlucyI7CgkJaW50IGZpcnN0U3BhY2UgPSBob3JhLmluZGV4T2YoIiAiKTsKCQkKCQlTdHJpbmcgdGVtcCA9IHJlcGxhY2VDaGFyQXQoaG9yYSwgZmlyc3RTcGFjZSwgIiIpOwoJCQoJCWludCBsYXN0U3BhY2UgPSB0ZW1wLmxhc3RJbmRleE9mKCIgIik7CgkJU3RyaW5nIGhvcmFTZW1Fc3BhY29zID0gcmVwbGFjZUNoYXJBdCh0ZW1wLCBsYXN0U3BhY2UsICIiKTsKCgkJU3lzdGVtLm91dC5wcmludGxuKGhvcmFTZW1Fc3BhY29zKTsKCX0KCQoJcHVibGljIHN0YXRpYyBTdHJpbmcgcmVwbGFjZUNoYXJBdChTdHJpbmcgcywgaW50IHBvcywgU3RyaW5nIGMpIHsKICAgIAlyZXR1cm4gcy5zdWJzdHJpbmcoMCwgcG9zKSArIGMgKyBzLnN1YnN0cmluZyhwb3MgKyAxKTsKICAgIH0KfQ==