/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.*;
import java.time.format.*;
import java.time.temporal.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
LocalDate ld = LocalDate.parse( "2011-12-15" );
Locale l
= new Locale( "en" ,
"IN" ) ; // English in India. Or Locale.UK for same results. DateTimeFormatter f = DateTimeFormatter.ofLocalizedDate( FormatStyle.LONG ).withLocale( l );
String output
= ld.
format( f
);
System.
out.
println( "ld.toString(): " + ld
); System.
out.
println( "output: " + output
);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLio7CmltcG9ydCBqYXZhLnRpbWUuZm9ybWF0Lio7CmltcG9ydCBqYXZhLnRpbWUudGVtcG9yYWwuKjsKCgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoKTG9jYWxEYXRlIGxkID0gTG9jYWxEYXRlLnBhcnNlKCAiMjAxMS0xMi0xNSIgKTsKTG9jYWxlIGwgPSBuZXcgTG9jYWxlKCAiZW4iICwgIklOIiApIDsgIC8vIEVuZ2xpc2ggaW4gSW5kaWEuIE9yIExvY2FsZS5VSyBmb3Igc2FtZSByZXN1bHRzLgpEYXRlVGltZUZvcm1hdHRlciBmID0gRGF0ZVRpbWVGb3JtYXR0ZXIub2ZMb2NhbGl6ZWREYXRlKCBGb3JtYXRTdHlsZS5MT05HICkud2l0aExvY2FsZSggbCApOwpTdHJpbmcgb3V0cHV0ID0gbGQuZm9ybWF0KCBmICk7CgpTeXN0ZW0ub3V0LnByaW50bG4oICJsZC50b1N0cmluZygpOiAiICsgbGQgKTsKU3lzdGVtLm91dC5wcmludGxuKCAib3V0cHV0OiAiICsgb3V0cHV0ICk7CgoJfQp9