Map<String,Double> map = new HashMap<String,Double>();
for (String name : multimap.keySet())
{
List<Integer> marks = multimap.get(name);
int sum = 0 ;
for (Integer num : marks )
{
sum += num;
}
double avg = (double)sum / marks.size();
map.put(name,avg);
}