java8 – How can I find the index of a given word using the expression Lambda and Stream, that is, the new Java 8 feature?

The data is given in two ways:
List arrayList = Arrays.asList ("abc", "xyz", "razi", "list"); Y

Rope[] x = {"abc", "xyz", "razi", "list"};

Chain word = "xyz";

I want to find the index of the given word in both cases using Lambda expression Y Current which is available in Java 8.
How can I do this?