public class getType {
public static String getType(Object test) {
return test.getClass().getName().toString();
}
public static void main(String[] args) {
int i = 1;
System.out.println(getType(i));
}
}
JAVA打印变量类型
猜你喜欢
转载自blog.csdn.net/qq_39208536/article/details/84474067
今日推荐
周排行