tobby48 4 years ago
parent
commit
4b4185ddde
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/kr/co/swh/lecture/java/scene4/FileByteStreamObjectRead.java

+ 2
- 0
src/kr/co/swh/lecture/java/scene4/FileByteStreamObjectRead.java View File

@@ -23,7 +23,9 @@ public class FileByteStreamObjectRead {
23 23
 		ObjectInputStream input = new ObjectInputStream(new FileInputStream("c:/text.txt"));
24 24
 		Object obj = input.readObject();
25 25
 		if(obj instanceof AA){		//	obj객체가 AA 데이터 타입인지 체크
26
+
26 27
 			System.out.println(obj.toString());
28
+			System.out.println(obj);
27 29
 		}
28 30
 		input.close();
29 31
 	}