Java tutorial
//package com.java2s; public class Main { public static void multiply(final int[] pArray, final float pFactor) { for (int i = 0; i < pArray.length; i++) { pArray[i] = Math.round(pArray[i] * pFactor); } } public static void multiply(final long[] pArray, final double pFactor) { for (int i = 0; i < pArray.length; i++) { pArray[i] = Math.round(pArray[i] * pFactor); } } }