getPersonSet static method

String getPersonSet(
  1. int personCount
)

returns 'Person' if personCount is 1 otherwise it returns 'People'.

Implementation

static String getPersonSet(int personCount) {
  if (personCount == 1) {
    return "Person";
  } else {
    return "People";
  }
}