[Solved] How to get the smallest list?
I dont know how you named your Lists, so I’m just going to call them List a, b, c and d. public List<?> getLongestList(List<?> a, List<?> b, List<?> c, List<?> d) { if (a.size() >= b.size() && a.size() >= c.size() && a.size() >= d.size()) return a; if (b.size() >= a.size() && b.size() >= c.size() && … Read more