Here you can find the source of findMaxDeformationCount(final List
public static int findMaxDeformationCount(final List<int[]> counts)
//package com.java2s; import java.util.List; public class Main { public static int findMaxDeformationCount(final List<int[]> counts) { double max = 0; for (int[] iA : counts) { max = Math.max(max, iA[iA.length - 1]); }//from w w w .j ava2 s.c o m return (int) max; } }