I\'m writing a simple edit text in Java. When the user opens it, a file will be opened in JTabbedPane. I did the following to save the files opened:
You have to follow the following sequence of opeartions:
Map to MapSet with map.entrySet();Mapset.iterator();Map.Entry with iterator.next();Entry.getKey() and Entry.getValue()# define Map
for (Map.Entry entry: map.entrySet)
System.out.println(entry.getKey() + entry.getValue);