I am having a map of String and List of String,
this is mine string

```
Name|A|B|D
Last|C|F|G|H

```

```
Map<String , List<String>> edited = new LinkedHashMap<>();
for(String s : data){
    String[] split = s.split("\\|");    
    for(int i = 1; i < split.length; i++){
        partValue.add(split[i]);
    }
    edited.put(split[0], partValue);
    partValue.clear();
}

```

when partValue is clear after second for loop then the map list value size also become 0.I don't want map list value to be affected.

I was trying to store

Name -> ["A", "B", "D"]

Last -> ["C", "F", "G", "H"]