E get(int index)返回值是普通类还是对象类?
本帖最后由 zhouchao0118 于 2024-8-1 13:44 编辑E get(int index)Returns the element at the specified position in this list.
Parameters:index - index of the element to returnReturns:the element at the specified position in this listThrows:IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
话说,怎么知道自己有没有封错呢?https://docs.oracle.com/javase/8/docs/api/
返回的是个模板类型,也叫泛型
页:
[1]