r/javahelp • u/[deleted] • 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
1
u/[deleted] Jul 28 '22
https://stackoverflow.com/questions/18951124/an-example-of-the-use-of-the-point-class