// 정수 문자열로 바꾸기
String numStr = new Integer(num).toString();

// 문자열 정수로 바꾸기
int num = Integer.parseInt(numStr);

'자바 문법' 카테고리의 다른 글

[자바] List -> Set, Set -> List 변환하기  (0) 2022.12.06
복사했습니다!