public void add(String text){
  if (errors == null) {
    errors=new ArrayList<String>();
  }
  errors.add(text);
}

public void add ( String text ) { if ( errors == null ) { errors = new ArrayList < String > ( ) ; } errors . add ( text ) ; }
add the error to the list . does not check for duplicates . do not add a null or an empty message .
