Pvo Gri

Greenhorn
+ Follow
since Apr 01, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pvo Gri

I am familiar with it, but I wouldn't say I fully know how to
1 week ago
Data is stored from a json file. Yes, there is a class that holds the data and it also has getters and setters.
1 week ago
What would be the best way to Sum Arraylist table different values?

For example we have a table:

Name                Time(s)                 State                        
John                      54                    Florida
Mike                      48                    Texas
Kyrie                     32                    Texas
Joe                        21                    Florida
Josh                      45                    Cali
Robert                   60                    Texas

Let's say we have the table info stored in an Arraylist
What algorithm would you use to calculate the time totals of states?

The final result should look like this:

State                       Time
Florida                      75
Texas                       140
Cali                           45
1 week ago