JDK 12在Java.lang.String類中引入了indent()方法。此方法對於從行的開頭添加或刪除空格以調整每個字符串行的縮進很有用。 用法: public String indent(int n).
確定! 回上一頁