getSpaced static method

String getSpaced(
  1. int level
)

Implementation

static String getSpaced(int level) {
  String result = "";

  for (int i = 0; i < level; i++) {
    result += " ";
  }

  return result;
}