Java tutorial
//package com.java2s; import java.util.List; public class Main { /** * Checks whether the given placeholder is encrypted. * * @param placeholder : to check. * @param encryptedPlaceholder : list of all encrypted placeholder. * @return true if it is */ public static boolean isEncryptedPlaceholder(String placeholder, List<String> encryptedPlaceholder) { if (encryptedPlaceholder != null) { return encryptedPlaceholder.contains(placeholder); } return false; } }