/* 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
{
{
try {
String date1
= String .
valueOf ( java.
time .
LocalDate .
of ( 1998 ,01,
11 ) ) ; java.time .format .DateTimeFormatter inputFormatter = java.time .format .DateTimeFormatter .ofPattern ( "yyyy-MM-dd" ) ;
java.time .LocalDateTime ldt = java.time .LocalDateTime .parse ( date1, inputFormatter) ;
// java.time.ZonedDateTime zdt = java.time.ZonedDateTime.parse("22/01/1998", inputFormatter);
System .
out .
println ( "error" + ex
) ; }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCXRyeXsKCQkJU3RyaW5nIGRhdGUxID0gU3RyaW5nLnZhbHVlT2YoamF2YS50aW1lLkxvY2FsRGF0ZS5vZigxOTk4LDAxLDExKSk7CgkJCVN5c3RlbS5vdXQucHJpbnRsbihkYXRlMSk7CgkJamF2YS50aW1lLmZvcm1hdC5EYXRlVGltZUZvcm1hdHRlciBpbnB1dEZvcm1hdHRlciA9IGphdmEudGltZS5mb3JtYXQuRGF0ZVRpbWVGb3JtYXR0ZXIub2ZQYXR0ZXJuKCJ5eXl5LU1NLWRkIik7CgkJamF2YS50aW1lLkxvY2FsRGF0ZVRpbWUgbGR0ID0gamF2YS50aW1lLkxvY2FsRGF0ZVRpbWUucGFyc2UoZGF0ZTEsIG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