摘要: 有时候我们需要获取某一变量的类型时有哪些方法? 使用反射的方法: 变量名.getClass().getSimpleName()来判断。 使用 instanceof 来判断:变量名 instanceof 类型来判断。 1.使用反射的方法来判断 使用 instanceof 来判断 阅读全文
posted @ 2020-07-17 22:43 笑到不能自已 阅读(9382) 评论(0) 推荐(2) 编辑