标签: java arraylist
只需尝试将Cities.dat文件的值添加到已创建的“城市”数组列表中即可。
private static File file=new File ("Cities.dat"); City[] cities = new City[] {};