yugi1112017-09-22TA获得超过7.9万个赞public class Yugi{ public static void main(String[] args){ int[] arr = {1,2,3,4,5}; for(int i = 1; i < arr.length; i += 2){ System.out.println(arr[i]); } for(int i = 0; i < arr.length; i += 2){ System.out.println(arr[i]); } }}