public boolean hasNote(Note paramNote) { for (int i = 0; i < this.phraseList.size(); i++) { Phrase localPhrase = (Phrase) this.phraseList.get(i); Note[] arrayOfNote = localPhrase.getNoteArray(); for (int j = 0; j < arrayOfNote.length; j++) { Note localNote = arrayOfNote[j]; if (paramNote.getNote().equals(localNote.getNote())) { return true; } } } return false; }