Update TableList.java

Use contains.