@@ -0,0 +1,1092 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0A/**%0A*   Solution to https://www.hackerrank.com/challenges/kaprekar-numbers%0A*/%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A%0A        int lower = in.nextInt();%0A        int upper = in.nextInt();%0A        boolean found = false;%0A%0A        StringBuilder sb = new StringBuilder();%0A%0A        for (long i = lower; i %3C= upper; i++) %7B%0A            String s = Long.toString(i * i);%0A            int middle = s.length() / 2;%0A%0A            int left = middle %3E 0 ? Integer.parseInt(s.substring(0, middle)) : 0;%0A            int right = Integer.parseInt(s.substring(middle, s.length()));%0A%0A            if (i == left + right) %7B%0A                sb.append(i).append(%22 %22);%0A                found = true;%0A            %7D%0A        %7D%0A%0A        if (!found) %7B%0A            System.out.println(%22INVALID RANGE%22);%0A        %7D%0A        else %7B%0A            sb.setLength(sb.length() - 1); //remove trailing space%0A            System.out.println(sb);%0A        %7D%0A    %7D%0A%7D%0A

Create kaprekar-numbers.java