Primitive Type의 Data가 필요하면 -> parseInt() 사용 -> int, long, short
Reference Type의 Class 객체가 필요하면 -> valueOf() 사용 -> Integer, Long, Short, String
문자열 (String) 형변환 : Casting, valueOf, toString
valueOf (Object obj) Returns the string representation of the Object argument. (Java docs) if the argument is null, then a string equal to "null"; otherwise, the value of obj.toString() is retu..
soobarkbar.tistory.com
'JAVA > Servlet & JSP' 카테고리의 다른 글
[Servlet & JSP] JSP 코드블록의 종류 (0) | 2021.03.15 |
---|---|
[Servlet & JSP] service() + doGet() & doPost() (0) | 2021.03.15 |
[Servlet & JSP] 상태유지 (0) | 2021.03.13 |
[Servlet & JSP] GET 요청 + 쿼리 스트링 (0) | 2021.03.12 |
[Servlet & JSP] 한글 출력하기 + HTML 출력하기 (0) | 2021.03.12 |