java math functions code example Example: math class in java int max = Math.max(10, 20); //returns largest of two value in parameter