객체자료형 형변환
![Java 형변환 (객체자료형 Object type ex)String etc.)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcWSTpR%2FbtrasuRK7uI%2Fj9eKRIFCuLO9Rg1EMryXHK%2Fimg.png)
Java 형변환 (객체자료형 Object type ex)String etc.)
Java 형변환(객체 자료형 String etc.) 객체자료형 형변환 본인이 자주 쓰는 형변환 순서대로 정리한 것 int to String String str = Integer.toString(i); String str = "" + i; //선호하는 편 String to int int i = Integer.parseInt(str); int i = Integer.valueOf(str).intValue(); double to String String str = Double.toString(d); long to String String str = Long.toString(l); float to String String str = Float.toString(f); String to double double d ..