@@ -0,0 +1,1385 @@
+/*%0AHackerrank%0AAlgorithms %3E Warmup %3E Library Fine%0Ahttps://www.hackerrank.com/challenges/time-conversion%0ATest Case #11 Wrong%0A*/%0A%0Aimport java.io.*;%0Aimport java.util.*;%0Aimport java.time.format.DateTimeFormatter;%0Aimport java.time.LocalDate;%0A%0Apublic class LibraryFine %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner sc = new Scanner(System.in);%0A        String actualReturnDateStr = sc.nextLine();%0A        String expectedReturnDateStr = sc.nextLine();%0A        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(%22d M y%22, Locale.ENGLISH);%0A        LocalDate actualReturnDate = LocalDate.parse(actualReturnDateStr, formatter);%0A        LocalDate expectedReturnDate = LocalDate.parse(expectedReturnDateStr, formatter);%0A        %0A        int fine = computeFine(actualReturnDate, expectedReturnDate);%0A        System.out.println(fine);%0A    %7D%0A    %0A    private static int computeFine(LocalDate actualReturnDate, LocalDate expectedReturnDate)%0A    %7B%0A        if (!(actualReturnDate.isAfter(expectedReturnDate))) return 0;%0A        else if (actualReturnDate.getMonth() == expectedReturnDate.getMonth()) %0A            return 15 * actualReturnDate.compareTo(expectedReturnDate);%0A        else if (actualReturnDate.getYear() == expectedReturnDate.getYear())%0A            return 500 * (actualReturnDate.getMonthValue() - expectedReturnDate.getMonthValue());%0A        else return 10000;%0A    %7D%0A%7D%0A

Create LibraryFine.java