list.add java
Ngày đăng:
01/03/2022
Trả lời:
0
Lượt xem:
3
Say I have a List like: ListWhile iterating through this list I want to add an element at the end of the list. But I don't want to iterate through the newly added elements that is I want to iterate up to the initial size of the list. for (String s : list) /* Here I want to add new element if needed while iterating */Can anybody suggest me how can I do this?
|