class StreamIndices {

    public static List<String> getOddIndexedStringsVersionTwo(String[] names) {
        List<String> oddIndexedNames = Stream.of(names)
            .zipWithIndex()
            .filter(tuple -> tuple._2 % 2 == 1)
            .map(tuple -> tuple._1)
            .toJavaList();
        return oddIndexedNames;
    }

}