I just started Java in visual studio code.
import sun.security.ec.point.Point;
public class Tutorial {
public static void main(String[] args) {
Point point1 = new Point(x:1,y:2);
System.out.println(point1);
}
}
After run the code, it shows the below warning:
The import sun.security.ec cannot be resolved
Point cannot be resolved to a type
x cannot be resolved to a variable
y cannot be resolved to a variable
Do anyone know why this happen? And anyway to solve this?