Java Utililty Methods Random Email

List of utility methods to do Random Email

Description

The list of methods to do Random Email are organized into topic(s).

Method

StringgenerateRandomEmailAddress(String domain)
Generates random email address with specified domain
String emailAddress = "";
String alphabet = "abcdefghijklmnopqrstuvwxyz";
while (emailAddress.length() < 5) {
    int character = (int) (Math.random() * 26);
    emailAddress += alphabet.substring(character, character + 1);
emailAddress += Integer.valueOf((int) (Math.random() * 99)).toString();
emailAddress += "@" + domain;
...