java:jfc_intf_collection
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java:jfc_intf_collection [2021/05/22 03:40] – [2ος τρόπος - iterator] gthanos | java:jfc_intf_collection [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 24: | Line 24: | ||
| | ||
public static void main(String args[]) { | public static void main(String args[]) { | ||
+ | Collection< | ||
students = new LinkedList< | students = new LinkedList< | ||
students.add(new Student(" | students.add(new Student(" | ||
Line 39: | Line 40: | ||
Μπορείτε να αντικαταστήσετε την '' | Μπορείτε να αντικαταστήσετε την '' | ||
<code java> | <code java> | ||
- | public void iterateCollection(Collection< | + | public |
Iterator< | Iterator< | ||
while( it.hasNext() ) { | while( it.hasNext() ) { |
java/jfc_intf_collection.1621654808.txt.gz · Last modified: 2021/05/22 02:40 (external edit)