Explicit data type in Java | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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