• + 0 comments

    Why is it n+1. Isn't that saying how long the string is so it should be n for all?

    System.out.printf("%"+(n+1)+"s",str+"\n");