获取数据类型可以自己创建一个方法:

static String getType(Object a) {
   
        return a.getClass().toString();
    }

注:本文章只为作者记录笔记,他人查阅仅供参考