public class GetTypeDemo {
public static String getType(Object o) {
return o.getClass().getName().toString();
}
public static void main(String[] args) {
int i = 1;
System.out.println(getType(i));
//java.lang.Integer
}
}