/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.* ;
import java.time.format.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
System.
out.
println( "input: " + input
) ;
for( ResolverStyle rs : ResolverStyle.values() )
{
try{
System.
out.
println( "---------------" ) ; System.
out.
println( "Parsing with ResolverStyle: " + rs
) ; DateTimeFormatter f = DateTimeFormatter.ISO_LOCAL_DATE.withResolverStyle( rs ) ;
LocalDate ld = LocalDate.parse( input , f ) ;
System.
out.
println( "ld.toString(): " + ld
) ; } catch ( DateTimeParseException e ) {
System.
out.
println( "Caught exception for ResolverStyle: " + rs
) ; }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLiogOwppbXBvcnQgamF2YS50aW1lLmZvcm1hdC4qIDsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgpTdHJpbmcgaW5wdXQgPSAiMjAxNy0wMi00NSIgOwpTeXN0ZW0ub3V0LnByaW50bG4oICJpbnB1dDogIiArIGlucHV0ICkgOwoKZm9yKCBSZXNvbHZlclN0eWxlIHJzIDogUmVzb2x2ZXJTdHlsZS52YWx1ZXMoKSApIAp7CiAgICB0cnl7CiAgICAJU3lzdGVtLm91dC5wcmludGxuKCAiLS0tLS0tLS0tLS0tLS0tIiApIDsKICAgIAlTeXN0ZW0ub3V0LnByaW50bG4oICJQYXJzaW5nIHdpdGggUmV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