我有以下String数组:
var stringArray:[String] = ["value1","value2","value3","value4"]
如何用另一个字符串替换索引2(“3”)的第三个String?
就那么简单:
stringArray[2] = "new string"