JAVA基础 | fori 和foreach
public class Main { public static void main(String[] args) { //数组遍历 String[] names = {"ABC", "XYZ", "zoo"}; /** * 0 ABC * 1 XYZ * 2 zoo */ for (int i = 0;