Here you can find the source of calculateMaxTime(Collection
Parameter | Description |
---|---|
times | a parameter |
public static long calculateMaxTime(Collection<Long> times)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { /**/*from ww w. j av a 2 s . co m*/ * Calculate the biggest so the slowest execution time. * * @param times * @return */ public static long calculateMaxTime(Collection<Long> times) { long maxTime = 0; for (long value : times) { maxTime = value > maxTime ? value : maxTime; } return maxTime; } }