[Java] 常用字串處理. 1. 字符串長度不足左補0. String str = String.format("%05d", 5) ; >> 00005. String str = String.format("%05s","5");
確定! 回上一頁