위와 같이 콘솔에 출력되지않고 파일로 저장되는 이유는 코드에서 FileOutputStream의 PrintStream으로 System의 출력을 수정해줬기 때문이다. 즉, 디폴트로 콘솔에 출력되는 PrintStream을 가진 System을 이와 ...