Good afternoon, I know that the way I explain it is complicated to help me.
I have a jTable that contains a column where times are shown, those times in mm: ss. I need to calculate the average between these times. I made several attempts with different alternatives to get to the goal but I can not even think of a way to perform this calculation.
My difficulty: We have the values inside the colum of the jtable, so these values are Strings.
What I've tried:
Result: a bos **, I could not add the way I imagined that I would achieve because however I was using SimpleDateFormat with mm: ss he returned me Thu Jan 01 00:00:10 BRT 1970 .
Only part of my code:
for (int i = 0; i < table.getRowCount(); i++) {
tempo_chegada = table.getValueAt(i, 5).toString();
}
I can not think of a logic of how I will add being that I only have Strings of a column of a jtable that can exist 1000 lines
I know it's vague because I do not have a piece of reasoned code, but I do not have the slightest idea of where I can start.