List<String> 안에 같은 문자열이 있으면 true, 없으면 false를 return
indexOf()는 같은 객체가 리스트에 존재하면 인덱스를 return, 존재하지 않으면 -1을 return