Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HashMap<String, HashMap<String, Double>> collector = new HashMap<String, HashMap<String, Double>>();
- collector.put("Artist", new HashMap<String, Double>(){{put("links", 5.0);}});
- System.out.println(collector);
- double value = collector.get("Artist").get("links");
- value = value + 1;
- //collector.put("Artist", new HashMap<String, Double>(){{put("links", value);}});
- collector.get("Artist").put("links", value);
- System.out.println(collector);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement