/* 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
{
{
MonthDay // Represent a month & day-of-month, without a year.
.from( // Extract a `MonthDay` from a `LocalDate`, omitting the year but keeping the month and day-of-month.
LocalDate // Represent a date-only value, without time-of-day and without time zone.
.parse( // Parse a string to get a `LocalDate`.
"24/04/2019" , // FYI, better to use standard ISO 8601 formats rather than devising a custom format such as this.
DateTimeFormatter.ofPattern( "dd/MM/uuuu" ) // Match the formatting pattern of your input strings.
) // Returns a `LocalDate`.
) // Returns a `MonthDay`.
.format(
DateTimeFormatter.ofPattern( "dd/MM" )
)
) ;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLiogOwppbXBvcnQgamF2YS50aW1lLmZvcm1hdC4qIDsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgpTeXN0ZW0ub3V0LnByaW50bG4oCiAgICBNb250aERheSAgICAgICAgICAgICAgICAgICAgIC8vIFJlcHJlc2VudCBhIG1vbnRoICYgZGF5LW9mLW1vbnRoLCB3aXRob3V0IGEgeWVhci4KICAgIC5mcm9tKCAgICAgICAgICAgICAgICAgICAgICAgLy8gRXh0cmFjdCBhIGBNb250aERheWAgZnJvbSBhIGBMb2NhbERhdGVgLCBvbWl0dGluZyB0aGUgeWVhciBidXQga2VlcGluZyB0aGUgbW9udGggYW5kIGRheS1vZi1tb250aC4KICAgICAgICBMb2NhbERhdGUgICAgICAgICAgICAgICAgLy8gUmVwcmVzZW50IGEgZGF0ZS1vbmx5IHZhbHVlLCB3aXRob3V0IHRpbWUtb2YtZGF5IGFuZCB3aXRob3V0IHRpbWUgem9uZS4KICAgICAgICAucGFyc2UoICAgICAgICAgICAgICAgICAgLy8gUGFyc2UgYSBzdHJpbmcgdG8gZ2V0IGEgYExvY2FsRGF0ZWAuCiAgICAgICAgICAgICIyNC8wNC8yMDE5IiAsICAgICAgIC8vIEZZSSwgYmV0dGVyIHRvIHVzZSBzdGFuZGFyZCBJU08gODYwMSBmb3JtYXRzIHJhdGhlciB0aGFuIGRldmlzaW5nIGEgY3VzdG9tIGZvcm1hdCBzdWNoIGFzIHRoaXMuCiAgICAgICAgICAgIERhdGVUaW1lRm9ybWF0dGVyLm9mUGF0dGVybiggImRkL01NL3V1dXUiICkgIC8vIE1hdGNoIHRoZSBmb3JtYXR0aW5nIHBhdHRlcm4gb2YgeW91ciBpbnB1dCBzdHJpbmdzLgogICAgICAgICkgICAgICAgICAgICAgICAgICAgICAgICAvLyBSZXR1cm5zIGEgYExvY2FsRGF0ZWAuIAogICAgKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBSZXR1cm5zIGEgYE1vbnRoRGF5YC4KICAgIC5mb3JtYXQoCiAgICAgICAgRGF0ZVRpbWVGb3JtYXR0ZXIub2ZQYXR0ZXJuKCAiZGQvTU0iICkgCiAgICApCikgOwogICAgCgl9Cn0=