mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
15 lines
296 B
Java
15 lines
296 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
import java.awt.*;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
private static Point ZERO = new Point(0, 0);
|
|
|
|
public static Point find(List<Point> points) {
|
|
for (Point pt : point<caret>s) {
|
|
if (pt != null) return pt;
|
|
}
|
|
return ZERO;
|
|
}
|
|
} |