r/javahelp • • Jul 27 '22

Need help with this code

I am trying to create a class called point which will have an x and y as coordinates however error squiggles show up and it's not running can someone point out the problem btw the code is not complete

public class Circle_class {
class Point(int x,int y)
    {
int x;
int y;
        x = x;
        y = y;
    }
class circle
    {
double radius;
Point center;
    }
}

0 Upvotes

8 comments sorted by