Here you can find the source of multiplyArray(float[] array, float num)
Parameter | Description |
---|---|
array | the to multiply array |
num | the multiplier |
public static float[] multiplyArray(float[] array, float num)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w . j a v a 2 s. c o m*/ * @param array the to multiply array * @param num the multiplier * @return the divided array */ public static float[] multiplyArray(float[] array, float num) { float[] result = new float[array.length]; for (int i = 0; i < array.length; i++) result[i] = array[i] * num; return result; } }