generateIndentation method

String generateIndentation (int level)

Implementation

static String generateIndentation(int level) {
  int i = 0;
  String temp = "";
  while (i < level){
    temp += " ";
    i++;
  }

  return temp;
}