@@ -0,0 +1,2292 @@
+%0A//pcckage com.hotye.dchaoxiong.serializabletest;  %0A      %0A    import java.io.FileInputStream;  %0A    import java.io.FileOutputStream;  %0A    import java.io.ObjectInputStream;  %0A    import java.io.ObjectOutputStream;  %0A    import java.io.Serializable;  %0A      %0A    public class SerializeBox implements Serializable %7B  %0A        /** %0A *          *  %0A *                   */  %0A        private static final long serialVersionUID = 1L;  %0A        private int width;  %0A        private int height;  %0A        private String name;  %0A      %0A        public static void main(String%5B%5D args) %7B  %0A      %0A            try %7B  %0A                SerializeBox myBox = new SerializeBox();  %0A                myBox.setWidth(50);  %0A                myBox.setHeight(30);  %0A                myBox.setName(%22%E9%9B%95%E6%88%88%22);  %0A                  %0A                FileOutputStream fs = new FileOutputStream(%22serializableObject.txt%22);  %0A                ObjectOutputStream os = new ObjectOutputStream(fs);  %0A                os.writeObject(myBox);  %0A                os.close();  %0A                fs.close();  %0A            %7D catch (Exception ex) %7B  %0A                ex.printStackTrace();  %0A            %7D  %0A      %0A            try %7B  %0A                FileInputStream fis = new FileInputStream(%22serializableObject.txt%22);  %0A                ObjectInputStream ois = new ObjectInputStream(fis);  %0A                SerializeBox box = (SerializeBox) ois.readObject();  %0A                System.out.println(box.getWidth());  %0A                System.out.println(box.getHeight());  %0A                System.out.println(box.getName());  %0A                ois.close();  %0A                fis.close();  %0A            %7D catch (Exception e) %7B  %0A                e.printStackTrace();  %0A            %7D  %0A        %7D  %0A      %0A        public void setHeight(int height) %7B  %0A            this.height = height;  %0A        %7D  %0A      %0A        public int getHeight() %7B  %0A            return height;  %0A        %7D  %0A      %0A        public void setWidth(int width) %7B  %0A            this.width = width;  %0A        %7D  %0A      %0A        public int getWidth() %7B  %0A            return width;  %0A        %7D  %0A      %0A        public void setName(String name) %7B  %0A            this.name = name;  %0A        %7D  %0A      %0A        public String getName() %7B  %0A            return name;  %0A        %7D  %0A      %0A    %7D  %0A

Rename the serialization java file name