public static List<Double> multiply(List<Double> l,double m){
  List<Double> out=new ArrayList<>();
  for (  double d : l) {
    out.add(d * m);
  }
  return out;
}

public static List < Double > multiply ( List < Double > l , double m ) { List < Double > out = new ArrayList < > ( ) ; for ( double d : l ) { out . add ( d * m ) ; } return out ; }
multiply a list of doubles with a scalar
