This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
java:jfc_intf_collection [2021/05/22 03:41] gthanos [2ος τρόπος - iterator] |
java:jfc_intf_collection [2021/05/22 03:47] gthanos [1ος τρόπος - For-Each Loop] |
||
|---|---|---|---|
| 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(" | ||