Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static boolean containsFilePath(ArrayList<String> filePaths, String filePath) { for (String onePath : filePaths) { if (onePath.equalsIgnoreCase(filePath)) { return true; } } return false; } }