public static void main(String[] args) {

		List<String> list = new ArrayList<String>(
				Arrays.asList("cat", "dog", "horse")
		);
		System.out.println(list);
		
		String item = list.get(1);
		System.out.println(item);
		
		boolean contains = list.contains(item);
		System.out.println(contains);
		
		int index = list.indexOf(item);
		System.out.println(index);
		
		list.remove(item);
		// list.remove("dog");
		System.out.println(list);
		
		list.add(1, new String("new_dog"));
		System.out.println(list);
		
		List<String> subList = list.subList(1, 3);
		System.out.println(subList);

		list.removeAll(subList);
		System.out.println(list);
		
		list.clear();
		System.out.println(list);
		
	}