在java中要遇到将创建的对象保存在本地文件中,然后根据需要将其读出,所以就需要用到装箱与拆箱 转载于:https://www.cnblogs.com/w7589/p/7308552.html