+ 1

Explicit data type in Java

I want to know that can I change a String data type to integer data type or vice versa Is it possible or it's just not possible in Sololearn's playground

4th Mar 2022, 10:39 AM
Ananya | Inactive |
Ananya | Inactive | - avatar
2 odpowiedzi
+ 4
Yes, try .parseInt() and .toString() methods.
4th Mar 2022, 11:09 AM
Simba
Simba - avatar
+ 3
Simba Manav Roy Thank you
4th Mar 2022, 11:14 AM
Ananya | Inactive |
Ananya | Inactive | - avatar