Facebook
  1.         public void filter(String content)
  2.     {
  3.         list2 = new ArrayList<>();
  4.         Notification pom= null;
  5.         for (Notification notification : list1)
  6.         {
  7.             if(content.equals(notification.getContent()))
  8.             {
  9.                 pom = notification;
  10.                 list2.add(pom);
  11.             }
  12.         }