public String getEmailAddress ( ) { int test = random . nextInt ( 100 ) ; String email = "" ; if ( test < 50 ) { // name and initial email = getFirstName ( ) . charAt ( 0 ) + getLastName ( ) ; } else { // 2 words email = getItem ( contentDataValues . getWords ( ) ) + getItem ( contentDataValues . getWords ( ) ) ; } if ( random . nextInt ( 100 ) > 80 ) { email = email + random . nextInt ( 100 ) ; } email = email + "@" + getItem ( contentDataValues . getEmailHosts ( ) ) + "." + getItem ( contentDataValues . getTlds ( ) ) ; return email . toLowerCase ( ) ; }
Generates an email address