title: Collectors.toMap gives compilation error (String,List<String) is not applicable for the arguments
body: <pre><code>import java.util.List;
  import java.util.Map;
  import java.util.stream.Collectors;
  
  public class StreamExample {
  
      public static void main(String[] args) {
  
          Student student = new Student();
          StudentDB studentDb = new StudentDB();
  
          System.out.println("All Elements from the List \n");
          studentDb.getStudentList().forEach(System.out::println);
  
          Map&lt;String, List&lt;String&gt;&gt; studentMap = studentDb.getStudentList().stream()
                  .collect(Collectors.toMap(student.getName(), student.getActivities()));
  
      }
  }
  </code></pre>