Exemplo n.º 1
0
 /**
  * Delete a comment from a song.
  *
  * @param authorId The author of the song.
  */
 public void deleteComment(String authorId, Date date) {
   for (Comment comment : comments) {
     if (comment.getAuthor().equals(authorId) && comment.getDate().equals(date)) {
       comments.remove(comment);
       return;
     }
   }
 }