public class Maths extends Object
public static int max(int a,
int b)
public static int min(int a,
int b)
public static boolean isOutOfBounds(int index,
int length,
int capacity)
index and length will fit within capacity.index - The starting index.length - The length which will be utilized (starting from index).capacity - The capacity that index + length is allowed to be within.true if the requested index and length will fit within capacity.
false if this would result in an index out of bounds exception.Copyright © 2019. All rights reserved.