We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello there !
I've got 2 csv files on my hand ; the first listing restaurants, with 3 columns(coordinate x, coordinate y, restaurant name) and another listing deliveries (coordinate x, delivery coordinate y , name of the restaurante the delivery was done by).
I need to : 1) Display the number of deliveries made for each restaurant. 2) The average distance of the deliveries for each restaurant (distance being calculated by this formula = sqrt(sq(x1-x2)+sq(y1-y2) at least I figured something out :p)
For the first, I made a class which looks like this :
Then I'm trying to go trought the deliveries table and change the arraylist of objects so that when the string happens to be the same in a row and the arraylist object the object counts gets to +1. But it doesn't seem to work. Any tips appreciated for the step 2, also.