char[] arr={'f','i','r','e','t','r','u','c','k'}; for(int i=0;i<arr.length;i++){ if(i%2==1){ System.out.print(arr[i]); } }