andriod 学习 step by step (一) public void setOperation(String operation) { StringBuilder builder = null; if (operation != null) { String newstr = new String(stringLeftPading(OPERATION_LENGTH, operation, CHAR_ZERO)); builder = new StringBuilder(newstr); } else builder = new StringBuilder(" "); builder.setLength(OPERATION_LENGTH); this.operation = builder.toString(); }