import java.util.ArrayList; import java.util.Collection; public class MainClass { public static void main(String[] argv) { Collection c = new ArrayList(); c.add("1"); System.out.println(c.contains("1")); } }