Java tutorial
//package com.java2s; public class Main { public static float getMaxfloat(float[] arr) { float max = Float.MIN_VALUE; for (int i = 0; i < arr.length; i++) { if (arr[i] > max) max = arr[i]; } return max; } }