Here you can find the source of div(float[] nums, float n)
public static float[] div(float[] nums, float n)
//package com.java2s; //License from project: Apache License import java.util.Arrays; public class Main { public static float[] div(float[] nums, float n) { assert !Float.isInfinite(n) : "Trying to divide " + Arrays.toString(nums) + " by " + n; // Almost surely not what you want for (int i = 0; i < nums.length; i++) nums[i] /= n;//from ww w .j a va2 s . c om return nums; } public static double[] div(double[] nums, double n) { assert !Double.isInfinite(n) : "Trying to divide " + Arrays.toString(nums) + " by " + n; // Almost surely not what you want for (int i = 0; i < nums.length; i++) nums[i] /= n; return nums; } }