HashMap<<Key>, <Value>> HashMap<Integer, ArrayList<Integer>> consecutive = new HashMap<>(); Method Description .put(Key, Value) Add pair .get(Key) Get value by key