@@ -0,0 +1,1095 @@
+//https://www.hackerrank.com/challenges/library-fine%0Aimport java.io.*;%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner s = new Scanner(System.in);%0A        %0A        //Get actual date%0A        byte actualDay = s.nextByte();%0A        byte actualMonth = s.nextByte();%0A        short actualYear = s.nextShort();%0A        %0A        //Get expected date%0A        byte expectedDay = s.nextByte();%0A        byte expectedMonth = s.nextByte();%0A        short expectedYear = s.nextShort();%0A        %0A        //Calculate fine%0A        short fine = 0;%0A        if(actualYear == expectedYear)%7B%0A            if(actualMonth == expectedMonth)%7B%0A                if(actualDay %3E expectedDay)%7B%0A                    fine = (short)(15*(actualDay - expectedDay));%0A                %7D%0A            %7D else if(actualMonth %3E expectedMonth)%7B%0A                fine = (short)(500*(actualMonth - expectedMonth));%0A            %7D%0A        %7D else if (actualYear %3E expectedYear)%7B%0A            fine = (short)10000;%0A        %7D%0A        %0A        //Print output%0A        System.out.print(fine);%0A    %7D%0A%7D%0A

Create library-fine.java