Here you can find the source of mean(int low, int high)
public static final int mean(int low, int high)
//package com.java2s; //License from project: Open Source License public class Main { /**Mean of two values.**/ public static final int mean(int low, int high) { return low + ((high - low) / 2); }/*from w w w.j a v a 2 s . c o m*/ public static final long mean(long low, long high) { return low + ((high - low) / 2); } }