/**
   * @param user
   * @return
   * @throws java.text.ParseException @Desc This function populates the "classifiedDayVector"
   *     variable of the com.post.parser.model.User class. It gives the total number of posts in the
   *     specified day range which has been described in getDayCategory(int DayOfWeek) in this
   *     class.
   */
  public User setCategorizedDayOfMonthToUser(User user) throws ParseException {
    int[] userDayOfMonthVector = user.getClassifiedDayOfMonthVector();
    for (Posts posts : user.getUserPost()) {
      String date = posts.getDate();
      int DayOfMonth = getDayOfMonth(date) - 1;
      userDayOfMonthVector[DayOfMonth] = userDayOfMonthVector[DayOfMonth] + 1;
    }
    user.setClassifiedDayOfMonthVector(userDayOfMonthVector);

    return user;
  }
 /**
  * @param userList
  * @return
  * @throws java.text.ParseException @Desc This function populates the "classifiedDayVector"
  *     variable of the com.post.parser.model.User class. It gives the total number of posts in the
  *     specified day range which has been described in getDayCategory(int DayOfWeek) in this
  *     class.
  */
 public List<User> setCategorizedDayOfMonthToUser(List<User> userList) throws ParseException {
   for (User user : userList) {
     int[] userDayOfMonthVector = user.getClassifiedDayOfMonthVector();
     for (Posts posts : user.getUserPost()) {
       String date = posts.getDate();
       int DayOfMonth = getDayOfMonth(date) - 1;
       System.out.println("Day Of Week " + DayOfMonth);
       userDayOfMonthVector[DayOfMonth] = userDayOfMonthVector[DayOfMonth] + 1;
     }
     user.setClassifiedDayOfMonthVector(userDayOfMonthVector);
   }
   return userList;
 }