@@ -0,0 +1,991 @@
+package javaDatatypes;%0A%0Aimport java.util.*;%0A%0A%0Aclass Solution%7B%0A%09%0A%09public static void getNumberAndOutoutType(Scanner sc)%7B%0A%09%09try%0A        %7B%0A            long x = sc.nextLong();%0A            System.out.println(x+%22 can be fitted in:%22);%0A            if( x %3E= -128 && x %3C= 127 ) %0A                System.out.println(%22* byte%22);%0A            if( x %3E= -32768 && x %3C= 32767 )%0A                System.out.println(%22* short%22);%0A            if( x %3E= -2147483648 && x %3C= 2147483647)%0A                System.out.println(%22* int%22);%0A            if( x %3E= -9223372036854775808L && x %3C= 9223372036854775807L)%0A                System.out.println(%22* long%22);%0A        %7D%0A        catch(Exception e)%0A        %7B%0A            System.out.println(sc.next() + %22 can't be fitted anywhere.%22);%0A        %7D%0A%09%7D%0A%09%0A    public static void main(String %5B%5Dargh)%0A    %7B%0A        Scanner sc = new Scanner(System.in);%0A        int t = sc.nextInt();%0A%0A        for(int i = 0;i %3C t; ++i)%0A        %09getNumberAndOutoutType(sc);%0A        %0A        sc.close();%0A    %7D%0A%7D

Add solution for problem Java Datatypes, HackerRank/Introduction/Java Datatypes