Here you can find the source of findMax(int a, int b, int c, int d)
private static int findMax(int a, int b, int c, int d)
//package com.java2s; /******************************************************************************* * Copyright (c) 2010-2012 ITER Organization. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ public class Main { private static int findMax(int a, int b, int c, int d) { int result = Math.max(a, b); result = Math.max(result, c); result = Math.max(result, d); return result; }//from w w w . java2 s .com }