if (value instanceof String) { String s = (String) value;
向下转型,instanceof 是判断对象的实际类型是 String,但是 value 这个引用是 Object 引用
Sign in to make a reply
Bang