@@ -0,0 +1,1618 @@
+import java.util.Scanner;%0Aimport java.math.BigInteger;%0A%0A%0Aclass Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int numberOfTestCases = scanner.nextInt();%0A%0A        try %7B%0A            for (int i = 0; i %3C numberOfTestCases; ++i) %7B%0A                BigInteger testCase = scanner.nextBigInteger();%0A%0A                if (Math.abs(testCase.longValue()) %3C Byte.MAX_VALUE) %7B%0A                    System.out.println(testCase + %22 can be fitted in:%22);%0A                    System.out.println(%22* byte%22);%0A                    System.out.println(%22* short%22);%0A                    System.out.println(%22* int%22);%0A                    System.out.println(%22* long%22);%0A                %7D else if (Math.abs(testCase.longValue()) %3C Short.MAX_VALUE) %7B%0A                    System.out.println(testCase + %22 can be fitted in:%22);%0A                    System.out.println(%22* short%22);%0A                    System.out.println(%22* int%22);%0A                    System.out.println(%22* long%22);%0A                %7D else if (Math.abs(testCase.longValue()) %3C Integer.MAX_VALUE) %7B%0A                    System.out.println(testCase + %22 can be fitted in:%22);%0A                    System.out.println(%22* int%22);%0A                    System.out.println(%22* long%22);%0A                %7D else if (Math.abs(testCase.longValue()) %3C Long.MAX_VALUE) %7B%0A                    System.out.println(testCase + %22 can be fitted in:%22);%0A                    System.out.println(%22* long%22);%0A                %7D%0A            %7D%0A        %7D catch(Exception e) %7B%0A            System.out.println(scanner.next() + %22 can't be fitted anywhere.%22);%0A        %7D%0A    %7D%0A%7D%0A

Create JavaDatatypes.java