List of utility methods to do PrintWriter Print
int n = position[level] - 1; for (int i = 0; i < n; i++) { out.print(' '); out.print(c);