A类中,创建一个string数组的变量内容是“hello ”“world”内容变成你好世界
是否是这样的效果、或者是要做中英互译?
import java.util.Arrays;
public class Questions {
public static void main(String[] args) {
String[] strings = new String[]{"hello", "world"};
System.out.println(Arrays.toString(strings));
strings[0] = "你好";
strings[1] = "世界";
System.out.println(Arrays.toString(strings));
}
}
没看懂你想表达什么