code: public String list(List<String> messages) {
  		List<String> sortedComponents = new ArrayList<String>(messages);
  		Collections.sort(sortedComponents);
  		String output = "";
  		for (String component : sortedComponents) {
  			output += "\n" + component;
  		}
  		return output;
  	}
docs: Separates messages on different lines for error messages.
  
  @param messages
  a list of messages to be formatted
  @return a String containing a each message on a seperate line