1、在toString( ) 中进行判断 2、要进行写到硬盘上,就要实现接口,序列化 3、String 类型和基本类型的转换 转载于:https://www.cnblogs.com/niuxiao12---/p/7269964.html