This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
java:jfc_intf_map [2015/03/23 03:54] gthanos [java.util.Map] |
java:jfc_intf_map [2015/03/23 03:56] gthanos [Μετατροπή του Map σε μορφή που να μπορείτε να το διατρέξετε (Collection ή Set)] |
||
|---|---|---|---|
| Line 68: | Line 68: | ||
| public static void main(String args[]) { | public static void main(String args[]) { | ||
| StudentMap stl = new StudentMap(); | StudentMap stl = new StudentMap(); | ||
| + | System.out.println("Map keys are:"); | ||
| stl.iterateMapKeys(); | stl.iterateMapKeys(); | ||
| + | System.out.println("Map values are:"); | ||
| stl.iterateMapValues(); | stl.iterateMapValues(); | ||
| + | System.out.println("Map key-value pairs are:"); | ||
| stl.iterateMapEntries(); | stl.iterateMapEntries(); | ||
| } | } | ||