-
String to int / int to String 형 변환JAVA 2021. 7. 5. 11:02
String to int
String stringToInt = "12345"; int result = Integer.parseInt(stringToInt); //12345
int to String
int intToString = 12345; String result = Integer.toString(intToString); //"12345" System.out.println(result + 1); //"123451"
728x90'JAVA' 카테고리의 다른 글
Map<String, Object> List<Map<String, Object>> (0) 2022.04.29 equals() / hashCode() (0) 2021.07.05 toString() / String.valueOf() (0) 2021.07.05