Android Integer.parseInt java.lang.NumberFormatException: Invalid int解决方法

解决方法:

http获取的字符串minutes去空字符串处理minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n", "").trim(),

Integer.parseInt(minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n", "").trim(),10);

posted @ 2013-08-02 08:28  94cool  阅读(18337)  评论(0编辑  收藏  举报