공부

[Java] Deep copy Date

승가비 2020. 1. 18. 19:58
728x90
Date original = new Date();
Date copy = new Date(original.getTime());

 

[출처] https://stackoverflow.com/questions/28332484/is-there-a-way-to-copy-date-object-into-another-date-object-without-using-a-refe

728x90
저작자표시 비영리 (새창열림)