in 5- primitive vs reference types, in Ultimate Java Part 1: Fundamentals
(types) the code bellow is correct and works, while for me it shows up as incorrect
x and y are collard red and the ; after is not in orange.
is there anything that im doing wrong? as this is the exact same code shown in the lecture. thanks
package com.codewithalex;
import java.awt.*;
public class Main {
public static void main(String[] args) {
Point point1 = new Point(x:1, y:1);
Point point2 = point1;
point1.x = 2;
System.out.println(point2);
}
}