Get index of an Element in two List located at same position : I want to get position of two elements 1 and A if they are located at same position.

E.g List one has elements {1,1,3,1,5}
    List two has elements {Q,B,Z,A,c}

output should be 3.

Below is my code,if anybody has any **optimized solution then please do reply.**

or solution using **Java8**

    public class GetIndex {   
    	 public static void main(String[] args) {
		   // TODO Auto-generated method stub
		   List<String> one = Arrays.asList("1", "1", "3", "1", "5");
		   List<String> two = Arrays.asList("Q", "B", "Z", "A", "C");
		   for (int i = 0; i < one.size(); i++) {
			    if (one.get(i).equals("1") && two.get(i).equals("A")) {
				System.out.println("Index where 1 & A: " + i);
			}
		}
     }
    }