Vicky wrote:You probably just need a single data-structure (A Map<String,List<String>>)
basically all files containt key,value pair entries
i want all common key with
values in a file in this case it is tom
Vicky wrote:unless you change file1 , file3 and file4 to include the key vinay , you won't have it as common to all files . Or I don't understand your requirement :) .
I think it quite imcomplete my intention is to get all commonkeys present in all 4 files, so lets if i leave vinay key as u mentioned and what if i add 5th file tommorow and it has vinay that time this will not work