Computer Science, asked by Rajendragadhwal2555, 9 months ago

How would you cast the string variable a that is equal to 2 into the integer 2?

Answers

Answered by mukunthgopi
2

Answer:

IN JAVA:

int a=2;

String b=Integer.toString(a);

Explanation:

hope it helps u

pls mark as brainliest

Similar questions