Here you can find the source of divideArray(float[] array, float num)
Parameter | Description |
---|---|
array | the to divide array |
num | the denominator |
public static float[] divideArray(float[] array, float num)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w .ja v a2 s. c om * @param array the to divide array * @param num the denominator * @return the divided array */ public static float[] divideArray(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; } }