title: To group and print results of results of student based on the result using collections
body: <p>My question is : I have arraylist of Student objects which have values  like  name(String), age(int), MarksScoredInPercentage(double) and result(String). Now I created multiple objects of students where some student result are Fail, Some are FC(First Class), and Some are SC(Second Class). </p>
  
  <p>Now I have to iterate the the array list and publish the result as output where students are grouped based on their result and displayed.</p>
  
  <pre><code> Output should be like
  ***** List of First class Student*******
  Name 1:
  Name 2:
  ****** List of Second Class Student*****
  Name1:
  Name 2:
  ****** List Of Fail Student ******
  Name1:
  Name 2
  </code></pre>