1. for循环
for(int i = 0; i < fields[].length; i++){ }
2 for each循环
for(String x:fields){ }
3. JDK8 lamda
Arrays.asList(array).stream().forEach(x -> System.out.println(x));//或 Arrays.asList(array).stream().forEach(System.out::println);