如何將數據添加到String []或從String []中刪除行?從數組中添加或刪除數據
//excerpt from class
public class Images {
public final static String[] imageUrls = new String[]{
"http://192.168.1.1/pictures/card/AA001a.jpg",
"http://192.168.1.1/pictures/card/AA001b.jpg"};
}
您可能想改爲使用'ArrayList'。只需調用add()和remove()即可完成。 – joao2fast4u 2014-10-27 16:08:19