How to print an alternate element of string array in java :     package com.javaprograms;

    import java.util.Arrays;


    public class PracticeJava

    {
	                                                                     
    public static void main(String args[])                                   
    {                      

    String[] array = {"ABC","XYZ","PQR","STW"};

    //int num = array.length;

    for(int i=0;i<=array.length-1;i++)
    {

	System.out.println(Arrays.asList(array));
	
	
    }
	


    }

    }

  **I want to print Alternate element of string array for ex. {"ABC","PQR"} OR {"XYZ","STW"}. I used above code but it is not working. Can anyone please help me how can i achieve given output.Any help can be appreciated.**  
