title: Java function for int[], float[] or double[] array
body: <p>I want to write a Java function that will get as input either <code>int[]</code>, <code>float[]</code> or <code>double[]</code>. The algorithm is exactly the same (some kind of a scalar product). How can I write a single function that will be able to handle all types of numeric arrays?</p>