examples/src/main/java/io/github/agentsoz/jill/example/greeter/Greeter.java
private static String buildName(boolean male) {
    StringBuilder name = new StringBuilder();
    name.append(male ? males[rand.nextInt(males.length)] : females[rand.nextInt(females.length)])
        .append(' ').append(middle[rand.nextInt(middle.length)]).append(' ')
        .append(surnames[rand.nextInt(surnames.length)]);
    return name.toString();
  }
private static String buildName(boolean male) {
    StringBuilder name = new StringBuilder();
    name.append(male ? males[rand.nextInt(males.length)] : females[rand.nextInt(females.length)])
        .append(' ').append(middle[rand.nextInt(middle.length)]).append(' ')
        .append(surnames[rand.nextInt(surnames.length)]);
    return name.toString();
  }
private static String buildName ( boolean male ) { StringBuilder name = new StringBuilder ( ) ; name . append ( male ? males [ rand . nextInt ( males . length ) ] : females [ rand . nextInt ( females . length ) ] ) . append ( ' ' ) . append ( middle [ rand . nextInt ( middle . length ) ] ) . append ( ' ' ) . append ( surnames [ rand . nextInt ( surnames . length ) ] ) ; return name . toString ( ) ; }
Builds a new name.

@param male specifies whether the name should be for a male or female
@return the constructed name
Builds a new name .