Here you can find the source of max(BigDecimal one, BigDecimal other)
Parameter | Description |
---|---|
one | a parameter |
other | a parameter |
public static final BigDecimal max(BigDecimal one, BigDecimal other)
//package com.java2s; import java.math.BigDecimal; public class Main { /**/*from w w w .j a v a2 s . c o m*/ * @param one * @param other * @return de grootste van beide */ public static final BigDecimal max(BigDecimal one, BigDecimal other) { return (one.compareTo(other) > 0 ? one : other); } }