Java add a list to class and modification -
i have problem list. adds list class. in class list more items added. when want display list of class not have items. add people mysqlcategorydao -> modify in mysqlcategorydao -> return people in class model. public class model { public list<category> people = new vector<category>(); public list<category> getpeople() { (category person : people) { system.out.println(person.getname()); //no data } return new arraylist<category>(people); } public void load() throws exception { daofactory factory = daofactory.getfactory(daofactory.mysql); new mysqlcategorydao(job.select,people).execute(); } } class in modifies list public class mysqlcategorydao extends swingworker<void, category> implements categorydao{ private job job; public list<category> list; public mysqlcategorydao(job job, list<category> list){ this.job = job; thi...