62,614
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) throws Exception {
Class a = Class.forName("java.util.ArrayList");
Class b = null;
while ((b = a.getSuperclass()) != null) {
a = b;
System.out.println(b);
}
}
Class.getGenericSuperclass()