展开全部
ArrayList 存放的是一个泛型,所以只能把它当成Object类型来使用
所以从思路上来说 你就只能看Object这个62616964757a686964616fe59b9ee7ad9431333337396334类的成员函数
Object有一个成员函数getClass() 通过它可以取出List中某一个对象的举起的类/**
* Returns the unique instance of {@link Class} that represents this
* object's class. Note that {@code getClass()} is a special case in that it
* actually returns {@code Class extends Foo>} where {@code Foo} is the
* erasure of the type of the expression {@code getClass()} was called upon.
*
* As an example, the following code actually compiles, although one might
* think it shouldn't:
*
*
{@code
* List l = new ArrayList();
* Class extends List> c = l.getClass();}
*
* @return this object's {@code Class} instance.
*/
public final native Class> getClass();