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  How do you check if a char is equal to another char in Java?

Leave a Reply

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