try { return Integer.parseInt(getAttribute(playListElementName, "length"));
Track[] tracks = getTracks(); int playListLength = 0; for (int i = 0; i < tracks.length; i++) { Track track = tracks[i]; if (track.isActive() && track.isRated() && track.getRating() >= 5) { if (++playListLength == MAX_PLAY_LIST_LENGTH) break; }
  public int getPlayListLength() {    try {      return Integer.parseInt(getAttribute(playListElementName, "length"));    }    catch (NumberFormatException e) {    }    return 19;  }