Here you can find the source of max(final int[] result, final int[] vec1, final int[] vec2)
public static int[] max(final int[] result, final int[] vec1, final int[] vec2)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] max(final int[] result, final int[] vec1, final int[] vec2) { for (int i = 0; i < result.length; i++) { result[i] = Math.max(vec1[i], vec2[i]); }//from ww w . j a v a 2 s .com return result; } }