private Pair<Integer,String> checkEmailText(){
  int i=0;
  for (  String address : getEmailAddresses()) {
    if (!address.isEmpty() && !EMailUtils.isValidEmailAddress(address)) {
      return new Pair<Integer,String>(i + 1,address);
    }
    i++;
  }
  return null;
}

private Pair < Integer , String > checkEmailText ( ) { int i = 0 ; for ( String address : getEmailAddresses ( ) ) { if ( ! address . isEmpty ( ) && ! EMailUtils . isValidEmailAddress ( address ) ) { return new Pair < Integer , String > ( i + 1 , address ) ; } i ++ ; } return null ; }
validates the content of the email addresses input field checking whether the e - mails have a correct syntax .
