如何获取List或Set的第一个元素? [复制] - How to get the first element of the List or Set? [duplicate]

问题:

This question already has answers here : 这个问题在这里已经有了答案
Closed 2 years ago . 2年前关闭。

I'd like to know if I can get the first element of a list or set.我想知道我是否可以获得列表或集合的第一个元素。 Which method to use?使用哪种方法?


解决方案:

参考一: https://stackoom.com/question/bGgp
参考二: How to get the first element of the List or Set? [duplicate]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章