Here you can find the source of modulus(int[] array)
public static int modulus(int[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static int modulus(int[] array) { return array[0] % array[array.length - 1]; }/*from www. j a va2 s . c om*/ }