title: Using Map arguments in constructor
body: <p>I have a class, <code>Student</code> with this constructor.</p>
  
  <pre><code> public Student(String name, int age, Map&lt;String, Integer&gt; grades) {
      this.setName(name);
      this.setAge(age);
      this.setGrades(grades);
   }
  </code></pre>
  
  <p>when creating a Student object, how do I pass the Map argument in the constructor?</p>
  
  <p>What am looking for is something similar to this:</p>
  
  <pre><code>List&lt;Student&gt; roster = new ArrayList&lt;&gt;();
  roster.add(new Student("Ann Droid", 145, Arrays.asList(96, 78)));
  </code></pre>
  
  <p>If I had this constructor:</p>
  
  <pre><code>public Student(String name, int age, List&lt;Integer&gt; grades) {
      this.setName(name);
      this.setAge(age);
      this.setGrades(grades);
   }
  </code></pre>