public class NameGenerator {
public static void main(String[] args){
String[] firstname = {"Adam", "Alexis", "Dennis", "Jose", "Jessica", "Meghan", "Memphis", "Nicky", "Sarah", "William"};
String[] lastname = { "Adamson", "Bond", "Brown", "Johnson", "Gallagher", "Smith", "Thompson", "Perez", "Snow", "Tran"};
//Loop through each first name
for(int firstnameIndex = 0; firstnameIndex < firstname.length; firstnameIndex++){
//Get the current first name
String currentfirstname = firstNames[firstnameIndex];
//Loop through each last name
for (int lastnameIndex = 0; lastnameIndex < lastnames.length; lastnameIndex++){
String currentlastname = lastnames[lastnameIndex];
//print the first name last name combo
System.out.println(currentfirstname+" "+currentlastname);
}
}
}
}