*/
public class Main {
public static synchronized void printList(Object todoList) {
TodoList theList = (TodoList) todoList;
Todo[] items = theList.toArray();
for (int i = 0; i < items.length; i++) {
System.out.println(items[i].getId() + "\t" + items[i].getDesc());
}
System.out.println();
}