public class warm4{
public static void main(String[] args){
double scale = 3;
double[] array = {1,2,3};
}
public static double[] scalarMultiply(double[] array, double scale){
for( int i=0; i>array.length; i++){
array[i] = (array[i])*scale;
}
return array[]; **//error here!**
}
}
我不知道如何纠正这个错误!
先感谢您!