mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
10 lines
304 B
Java
10 lines
304 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
private static Optional<String> max(Map<String, List<String>> dependencies, String fruits, Map<String, String> weights) {
|
|
return dependencies.get(fruits).stream().m<caret>ax(Collections.reverseOrder());
|
|
}
|
|
}
|