Home > Back-end > Rookie question, why CMD effect and the eclipse effect cannot be aligned, how should solve???????
Rookie question, why CMD effect and the eclipse effect cannot be aligned, how should solve???????
Time:10-11
output, after the name is not equal to the number of words, but behind the "age" this two word can be aligned, but behind the 12 July, these two characters are different, but why later on not neat??
code are the same, from TXT copied, eclipse is not neat, before facing on behind can align again??? This is why??????
to ask: how to do regardless of input characters in length, can do some before and after pictures in this alignment???????
CodePudding user response:
Use the/t/n/r this kind of special character, instead of lost space https://blog.csdn.net/weixin_43876121/article/details/103135569 off hand
CodePudding user response:
The output of each column length under control, such as System. The out. Printf (" % 5 ", name); System. The out. Printf (" % 5 ", the age); System.out.println();
CodePudding user response:
Are you not see my code? I am using is \ t, not hand input Spaces