Bug in trying reference type

Hi guys. I am a newbie in this forum. Hope I can find an answer here.

I watched Mosh’s beginner Java tutorial on Youtube and tried out reference type today. But there is a bug in running Mosh’s example on my Windows 7 computer, as shown in the screenshot. Does anyone know how to fix the issue? I have already followed Mosh’s steps in writing the code.

Thanks a lot!

I think the problem is near those red squigglies. Maybe it should be

Point point1 = new Point(1, 1);

yes yes it works now. Intellij automatically adds “x:” and “y:” before the two numbers.

Thank you so much eelsholz!
reference type no bug