I’m learning how to code currently on my own before I take a couple classes. Why won’t Point point1= new Point (x: 1, y: 1); work. I get an error when I try to run it in this specific section using IntelliJ
Just need help with that part. Trying to learn the basics.
>Solution :
What error do you get? What is the programm code for the Point constructor you are calling? What is the Java version you are targeting?
Aside from those obvious questions, one thing jumps out to me immediately:
I do not think that java has named arguments.
Try this instead:
Point point1 = new Point (1, 1)