Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you help me ? e1 and o1 cannot be resolved to a variable #3

Open
codenemy opened this issue Feb 10, 2019 · 0 comments
Open

Can you help me ? e1 and o1 cannot be resolved to a variable #3

codenemy opened this issue Feb 10, 2019 · 0 comments

Comments

@codenemy
Copy link

In e1, e2, and o1 i have get this error " e1 cannot be resolved to a variable"

i'm using eclipse java

public static void sortTopLeft2BottomRight(List<MatOfPoint> points){
        // top-left to right-bottom sort
        Collections.sort(points, (e1, e2) -> {

            Point o1 = new Point(e1.get(0, 0));
            Point o2 = new Point(e2.get(0, 0));

            return o1.y > o2.y ? 1 : -1;
        });
    }

    public static void sortLeft2Right(List<MatOfPoint> points){
        // left to right sort
        Collections.sort(points, (e1, e2) -> {

            Point o1 = new Point(e1.get(0, 0));
            Point o2 = new Point(e2.get(0, 0));

            return o1.x > o2.x ? 1 : -1;
        });
    }
Repository owner deleted a comment Jan 31, 2024
Repository owner deleted a comment Feb 26, 2024
Repository owner deleted a comment from sandipbhuyan Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant