I'm doing a program that applies slope uplift, but the value I need to compare to know if the previous one is better than the next one is a vector double
My method to find the best value returns a double
vector:
public double[] método(parâmetros){
código
return vetor;
}
What I can not do is assign this vector to another vector:
public void método2(parâmetros){
double vet2[] = new double[n];
vet2[]=método(parâmetros);
}
My question is how would I be able to return the vector and pass its values to another vector in another method?