src/main/java/board/Board.java
public void addNote(Topic topic, Note note) throws BoardException {
    if (!topics.containsKey(topic)) {
      throw new TopicDoesntExistException();
    }
    if (topics.get(topic).contains(note)) {
      throw new NoteExistsException();
    }
    topics.get(topic).add(note);
  }
/**
   * addNote to the Topic.
   *
   * @throws BoardException If the Topic isn't on the Board or the Topic has the
   *                        Note.
   */
addNote to the Topic.
@throws BoardException If the Topic isn't on the Board or the Topic has the
Note.
addNote to the Topic . @throws BoardException If the Topic isn ' t on the Board or the Topic has the Note .
public void addNote(Topic topic, Note note) throws BoardException {
    if (!topics.containsKey(topic)) {
      throw new TopicDoesntExistException();
    }
    if (topics.get(topic).contains(note)) {
      throw new NoteExistsException();
    }
    topics.get(topic).add(note);
  }
public void addNote ( Topic topic , Note note ) throws BoardException { if ( ! topics . containsKey ( topic ) ) { throw new TopicDoesntExistException ( ) ; } if ( topics . get ( topic ) . contains ( note ) ) { throw new NoteExistsException ( ) ; } topics . get ( topic ) . add ( note ) ; }
addNote to the Topic.
addNote to the Topic .