If I understand it correctly, the sample works and the data gets displayed for you in the table. Your question is now, how to get the data from the table and print it. Let me know if my understanding is right.
Ok. There is a method getItems() in the TableView class which simply returns back the List<> of your objects. The first item in the list corresponds to the first row and so on.
Once you get the row object, you can call methods on that to get the individual values.