You need to change this code
public int thesize()
{
return ts1.size();
}
To something like this, which will return the size of the ArrayList wrapped by the class.
public int thesize()
{
return data.size();
}
You can't refer to a specific instance of a class inside the class. You can only do that when that specific instance (or a reference to it) exists.