Can you make a String an int?

We can convert String to an int in java using Integer. parseInt() method . To convert String into Integer, we can use Integer. valueOf() method which returns instance of Integer class.

Sizin İçin Seçtik  Can we store char in array?

Leave a Reply

Your email address will not be published. Required fields are marked *