Java List Object instead of an Array
问题 I hava a Java map like this: Map<String, Object> data = new HashMap<String, Object>(); And I am performing following operation on it: data.put("case_ids", new int[] { 31527 }); Where case_ids is one of the attribute of 3rd party API. However, that API throws incorrect API request error and suggests me to use List object instead of an Array for: data.put("case_ids", new int[] { 31527 }); Not an expert of List, any suggestions? Like data.put("case_ids", new List[] { 31527 }); ? EDITED :