/** * Retrieves a string representation of the object. * * @return a string representation of the object. * @see java.lang.Object#toString() */ public String toString() { StringBuffer sb = new StringBuffer(); for (Music m : list.getMusic()) { sb.append(m.toString() + "\n"); } return sb.toString(); }