Level Plan:
This level explores an overview of collections. Detailed in-depth study will be at 30+ levels.
What else can you look at at your leisure: Read about collections Article on Habré about ArrayList Article on Habré about LinkedList http://habrahabr.ru/post/128017/ Example of deleting records from a map:
Found a cool link to the material on this topic? Add it here as a comment. Perhaps your link will help another person become a programmer and improve their life!
Return to training plan
Return to training on JavaRush
- Collections: LinkedList, HashSet, HashMap. Date - date.
- Collections Set is a set, List is a list, Map is a dictionary (or map).
- List -> ArrayList, LinkedList, Vector, Stack.
- Set -> HashSet, TreeSet, SortedSet.
- Map -> HashMap, TreeMap, SortedMap, Hashtable.
- Implementation differences
- Working with Iterators Iterator. Methods hasNext(), next()
- Map.Entry. Methods getKey(), getValue()
- Working with dates - the Date class.
This level explores an overview of collections. Detailed in-depth study will be at 30+ levels.
What else can you look at at your leisure: Read about collections Article on Habré about ArrayList Article on Habré about LinkedList http://habrahabr.ru/post/128017/ Example of deleting records from a map:
Map
map = new HashMap<>(); map.put("1", "2"); map.put("3", "4"); Map
mapCopy = new HashMap<>(map); for(Map.Entry
pair : mapCopy.entrySet()) { map.remove(pair.getKey()); }
Found a cool link to the material on this topic? Add it here as a comment. Perhaps your link will help another person become a programmer and improve their life!
Return to training plan
Return to training on JavaRush
GO TO FULL VERSION