/* package whatever; // don't place package name! */
import java.util.* ;
import java.lang.* ;
import java.io.* ;
import java.time.* ;
import java.time.temporal.* ;
import java.time.format.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
LocalDate.parse ( // Generate `LocalDate` object from String input.
"05/01/2025" ,
DateTimeFormatter.ofPattern ( "d/M/uuuu" )
)
.getDayOfWeek ( ) // Get `DayOfWeek` enum object.
.getDisplayName ( // Localize. Generate a String to represent this day-of-week.
TextStyle.SHORT_STANDALONE , // How long or abbreviated. Some languages have an alternate spelling for "standalone" use (not so in English).
Locale .
GERMAN // Or Locale.CANADA_FRENCH and such. Specify a `Locale` to determine (1) human language for translation, and (2) cultural norms for abbreviation, punctuation, etc. ) ;
System .
out .
println ( "output: " + output
) ;
// NOTE: This IdeOne.com site’s JVM overrides any specified `Locale` with `Locale.US`.
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLio7CmltcG9ydCBqYXZhLnRpbWUudGVtcG9yYWwuKjsKaW1wb3J0IGphdmEudGltZS5mb3JtYXQuKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgpTdHJpbmcgb3V0cHV0ID0gCkxvY2FsRGF0ZS5wYXJzZSggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gR2VuZXJhdGUgYExvY2FsRGF0ZWAgb2JqZWN0IGZyb20gU3RyaW5nIGlucHV0LgogICAgICAgICAgICAgIjA1LzAxLzIwMjUiICwKICAgICAgICAgICAgIERhdGVUaW1lRm9ybWF0dGVyLm9mUGF0dGVybiggImQvTS91dXV1IiApIAogICAgICAgICApICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgIC5nZXREYXlPZldlZWsoKSAgICAgICAgICAgICAgICAgICAgICAgLy8gR2V0IGBEYXlPZldlZWtgIGVudW0gb2JqZWN0LgogICAgICAgICAuZ2V0RGlzcGxheU5hbWUoICAgICAgICAgICAgICAgICAgICAgIC8vIExvY2FsaXplLiBHZW5lcmF0ZSBhIFN0cmluZyB0byByZXByZXNlbnQgdGhpcyBkYXktb2Ytd2Vlay4KICAgICAgICAgICAgIFRleHRTdHlsZS5TSE9SVF9TVEFOREFMT05FICwgICAgICAvLyBIb3cgbG9uZyBvciBhYmJyZXZpYXRlZC4gU29tZSBsYW5ndWFnZXMgaGF2ZSBhbiBhbHRlcm5hdGUgc3BlbGxpbmcgZm9yICJzdGFuZGFsb25lIiB1c2UgKG5vdCBzbyBpbiBFbmdsaXNoKS4KICAgICAgICAgICAgIExvY2FsZS5HRVJNQU4gICAgICAgICAgICAgICAgICAgICAgICAvLyBPciBMb2NhbGUuQ0FOQURBX0ZSRU5DSCBhbmQgc3VjaC4gU3BlY2lmeSBhIGBMb2NhbGVgIHRvIGRldGVybWluZSAoMSkgaHVtYW4gbGFuZ3VhZ2UgZm9yIHRyYW5zbGF0aW9uLCBhbmQgKDIpIGN1bHR1cmFsIG5vcm1zIGZvciBhYmJyZXZpYXRpb24sIHB1bmN0dWF0aW9uLCBldGMuCiAgICAgICAgICkgIDsKICAgICAgICAgClN5c3RlbS5vdXQucHJpbnRsbiggIm91dHB1dDogIiArIG91dHB1dCApIDsKCi8vIE5PVEU6IFRoaXMgSWRlT25lLmNvbSBzaXRl4oCZcyBKVk0gb3ZlcnJpZGVzIGFueSBzcGVjaWZpZWQgYExvY2FsZWAgd2l0aCBgTG9jYWxlLlVTYC4KICAgICAgICAgCgl9Cn0=