I have the following code, where I have as input in the method a double number and 3 array lists of objects:
public static ArrayList<ELPERouteStop> relatedness(double pososto,ArrayList<ELPERouteStop> all_stops, ArrayList<Distance> distances, ArrayList<ELPEVehicleLoaded> vl_list)
{
//do stuff
return destroyedCustomers;
}
I need to call the list destroyedCustomers from another method of the same class. The other class would be:
public void destroySolution(ArrayList<ELPERouteStop> removedCustomers, SolutionCreated sc,ArrayList<shadowVehicle> all_svehicles)
{
//do stuff
}
which I have as input the list of objects I need to access. Is there any way I can have this access? On my main method I have done the following:
LNS lns = new LNS();
lns.destroySolution(LNS_Procedure.relatedness(0.15,all_route_stops, distances, vl_list), sc, all_svehicles);
Is this going to work? Thank you very much in advance!