code: public static Note getLongestNote(Note[] notes) {
  	  float length = 0;
  	  float currentNoteLength = 0;
  	  Note maxNote = null;
  	  for (int i=0; i<notes.length && maxNote==null; i++) {
  		  currentNoteLength = notes[i].getDuration();
  		  if (currentNoteLength > length)
  			  maxNote = notes[i];
  	  }
  	  return maxNote;
    }
docs: Returns the note with the biggest duration from the given array of notes.
  @param notes An array of notes.
  @return The note with the biggest duration from the given array of notes.
  @see Note#getDuration()