Java Number Max Value max2(int a, int b)

Here you can find the source of max2(int a, int b)

Description

max

License

Apache License

Declaration

public static int max2(int a, int b) 

Method Source Code

//package com.java2s;
/***********************************************************************
 PEGASUS: Peta-Scale Graph Mining System
 Authors: U Kang, Duen Horng Chau, and Christos Faloutsos

 This software is licensed under Apache License, Version 2.0 (the  "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.//from www  .j  ava  2  s. c om
 -------------------------------------------------------------------------
 File: PegasusUtils.java
 - Common utility classes and functions
 Version: 2.0
 ***********************************************************************/

public class Main {
    public static int max2(int a, int b) {
        if (a > b)
            return a;

        return b;
    }
}

Related

  1. max(T c1, T c2)
  2. max(T c1, T c2)
  3. max(T v1, T v2)
  4. max(T v1, T v2, int nullSupport)
  5. max2(double a, double b)
  6. max255(float val)
  7. max3(double a, double b, double c)
  8. max3(int a, int b, int c)
  9. max3(int first, int second, int third)