@@ -0,0 +1,522 @@
+public class Note %7B%0A    private NoteValue noteValue;%0A    private Pitch pitch;%0A%0A    public Note(NoteValue noteValue, Pitch pitch) %7B%0A        if (noteValue == null)%0A            throw new IllegalArgumentException(%22noteValue may not be null%22);%0A%0A        this.noteValue = noteValue;%0A        this.pitch     = pitch;%0A    %7D%0A%0A    public boolean isRest() %7B%0A        return this.pitch == null;%0A    %7D%0A%0A    public Pitch pitch() %7B%0A        return this.pitch;%0A    %7D%0A%0A    public NoteValue noteValue() %7B%0A        return this.noteValue;%0A    %7D%0A%7D%0A

Add Note.java