62,615
社区成员
发帖
与我相关
我的任务
分享
public E element() {
return getFirst();
}
/**
* Retrieves, but does not remove, the head (first element) of this list.
*
* @return the head of this list
* @throws NoSuchElementException if this list is empty
* @since 1.5
*/
public E element() {
return getFirst();
}