public HashMap LHashMapMake(List <string> l1) { char[] splitter = { '\n', '\r', ',' }; List <string> list1 = new List <string>(); List <string> list2 = new List <string>(); for (int i = 0; i < l1.Count; i++) { string[] temp = l1[i].Split(splitter); string holding = ""; for (int j = 0; j < temp.Length; j++) { if (j == 0) { list1.Add(temp[j]); } else { holding += (temp[j] + " "); } } list2.Add(holding); } var a1 = list1.ToArray(); var a2 = list2.ToArray(); HashMap hashmap = new HashMap(); for (int i = 0; i < a1.Length; i++) { hashmap.LinearProbe(long.Parse(a1[i]), a2[i]); } return(hashmap); }