题解 | #把字符串转换成整数#
把字符串转换成整数
http://www.nowcoder.com/practice/1277c681251b4372bdef344468e4f26e
有没有这么玩的兄弟hhhhhhhh
if(str == null || str.length()<=0) return 0; try{ return Integer.valueOf(str); } catch(Exception e){ return 0; } }
把字符串转换成整数
http://www.nowcoder.com/practice/1277c681251b4372bdef344468e4f26e
有没有这么玩的兄弟hhhhhhhh
if(str == null || str.length()<=0) return 0; try{ return Integer.valueOf(str); } catch(Exception e){ return 0; } }
相关推荐