import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.ResolverStyle;
class Datas {
public static void main
(String[] args
) { DateTimeFormatter original = DateTimeFormatter
.ofPattern("uuuuMMddHHmmss")
.withResolverStyle(ResolverStyle.STRICT);
DateTimeFormatter novo = DateTimeFormatter
.ofPattern("uuuu-MM-dd HH:mm:ss")
.withResolverStyle(ResolverStyle.STRICT);
LocalDateTime dataHora = LocalDateTime.parse("20161109103000", original);
String formatado
= dataHora.
format(novo
); System.
out.
println(formatado
); }
}
aW1wb3J0IGphdmEudGltZS5Mb2NhbERhdGVUaW1lOwppbXBvcnQgamF2YS50aW1lLmZvcm1hdC5EYXRlVGltZUZvcm1hdHRlcjsKaW1wb3J0IGphdmEudGltZS5mb3JtYXQuUmVzb2x2ZXJTdHlsZTsKCmNsYXNzIERhdGFzIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBEYXRlVGltZUZvcm1hdHRlciBvcmlnaW5hbCA9IERhdGVUaW1lRm9ybWF0dGVyCiAgICAgICAgICAgICAgICAub2ZQYXR0ZXJuKCJ1dXV1TU1kZEhIbW1zcyIpCiAgICAgICAgICAgICAgICAud2l0aFJlc29sdmVyU3R5bGUoUmVzb2x2ZXJTdHlsZS5TVFJJQ1QpOwogICAgICAgIERhdGVUaW1lRm9ybWF0dGVyIG5vdm8gPSBEYXRlVGltZUZvcm1hdHRlcgogICAgICAgICAgICAgICAgLm9mUGF0dGVybigidXV1dS1NTS1kZCBISDptbTpzcyIpCiAgICAgICAgICAgICAgICAud2l0aFJlc29sdmVyU3R5bGUoUmVzb2x2ZXJTdHlsZS5TVFJJQ1QpOwoKICAgICAgICBMb2NhbERhdGVUaW1lIGRhdGFIb3JhID0gTG9jYWxEYXRlVGltZS5wYXJzZSgiMjAxNjExMDkxMDMwMDAiLCBvcmlnaW5hbCk7CiAgICAgICAgU3RyaW5nIGZvcm1hdGFkbyA9IGRhdGFIb3JhLmZvcm1hdChub3ZvKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oZm9ybWF0YWRvKTsKICAgIH0KfQ==