Java 的ParseInt方法将很高兴地解析带有前导零的十进制值,而不会抛出异常,剥离零: int value = Integer.parseInt("050", 10); 将导致整数值50。
確定! 回上一頁