TIL

String to int / int to String ํ˜•๋ณ€ํ™˜

jjingle 2022. 1. 3. 14:11

Strinig -> int

String A = "123";
int B = Integer.parseInt(A);

 

int -> String

int B = 123;
String A = Integer.toString(B);