printUsers method

bool printUsers ()

Prints the users/subjects stored in the acm. Returns true if there are users; otherwise, false.

Implementation

bool printUsers() {
  if (subjects.isEmpty) {
    stdout.writeln('There are no users.');
    return false;
  }
  stdout.writeln('USERS:');
  subjects.forEach((subject) => stdout.writeln(subject));
  return true;
}