clazz.cast(object) 清疚 2022-01-27 23:13 127阅读 0赞 public static void main(String[] args) { Class<String> clazz = String.class; Object object = new String("222"); String string = clazz.cast(object); System.out.println(string); }
还没有评论,来说两句吧...