Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- InvocationHandler
- chunked
- Reference
- reflection
- Keep-Alive
- clone
- Session
- object
- http/1.1
- urlclassloader
- singleton
- Content-Length
- getRequestURI
- toString
- cookie
- http
- Java
- Transfer-Encoding
- unmodifiableList
- Proxy
Archives
- Today
- Total
목록toString (1)
pungjoo
작성중 - toString()
0. 들어가면서 통상 객체의 필드의 내용을 확인 하는 용도로 System.out.println( someClass.toString() ); 을 많이 이용합니다. 그러나 toString을 Override를 하지 않으면 'className@hashcode' 값이됩니다. 1. 준비 운동 package info.yeonwoo.edu; public class User { private Stringname; private intage; private Stringaddress; public String getName() { return name; } public void setName( String name ) { this.name = name; } public int getAge() { return age; } p..
JAVA
2010. 7. 9. 16:46