• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read data from Tableview and Sum. What´s is th best way?

 
Ricardo Marzano
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John Damien Smith
Ranch Hand
Posts: 296
14
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are a couple of different methods of summing a list:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic