Read data from Tableview and Sum. What´s is th best way?
posted 5 months ago
Hello. I would like a help please. How to read data in a tableview in JavaFX so that these values are added together and saved in another variable? It comes from a database and is shown on the screen. I will create a function to add the table. And it's a list of type double. How to do this in a FOR loop and store a result variable and pro order to show in a text box? I've never worked with lists in Java and would like a suggestion: Read the database and add or read the table directly and add? Thanks in advance. Ricardo.