ニュース

If the object is a Number, convert it to int; If the object is a CharSequence (which is super interface of String), convert the string it represents to int. No need to handle the conversion failure.
What's the difference between an Integer and int in Java? Here we compare these two Java data types for usage, performance and when to choose an int or an Integer in your code.