Integer.parseInt()并不会先给你trim()再做解析

如 Integer.parseInt("   5   ") ,会抛出异常

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.