格式化, String formatStr = "%03d"; String formatAns = String.format(formatStr, 12); System.out.println("數字補零:"+formatAns);. 正規表達式, return str.
確定! 回上一頁