티스토리 뷰

공부

[Java] NumberUtils.toInt(null) -> 0

seunggabi 승가비 2021. 2. 9. 01:07
728x90

https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/math/NumberUtils.html#toInt-java.lang.String-

 

NumberUtils (Apache Commons Lang 3.11 API)

Convert a String to a Integer, handling hex (0xhhhh) and octal (0dddd) notations. N.B. a leading zero means octal; spaces are not trimmed. Returns null if the string is null.

commons.apache.org

 

728x90

'공부' 카테고리의 다른 글

[Python] search keyword  (0) 2021.02.09
[Java] everything of encoding  (0) 2021.02.09
[Java] NumberUtils.toInt(null) -> 0  (0) 2021.02.09
[SQL] LIKE subquery  (0) 2021.02.09
[Java] re try catch  (0) 2021.02.09
[Python] has key dict  (0) 2021.02.09
댓글
댓글쓰기 폼