Java tutorial
//package com.java2s; import java.util.List; public class Main { public static String seek(List<String> strings1, List<String> strings2, String content) { int idx = strings1.indexOf(content); if (idx == -1) return null; return strings2.get(idx); } }