Hi ,
first of all, the lectures are pretty good but there is something which does not work with Java when following the coding examples.
In the 5. Video of the Ulitmate Java 1 Fundamentls path, there is an error or I do not possess the new Java version?
In the lecture video about - Primitive vs Reference Types at 3:30 min I have not been able to reproduce your code line without getting a syntax error.
The object’s assignment, which looks alike in javascript, does not work in my case and throws syntax error:
import java.awt.*;
public class Main {
public static void main(String[] args) {
Point point1 = new Point(x:1,y:2);
}
}
Point(x:1,y:2) assignment throws a syntax error:
"Syntax error on token ":", Invalid AssignmentOperator"
I would like to know why this assignment operation does not work in my case ? I use VS Code and additional extensions but not the IDE like Mosh uses.
Thank you very much in advance,
Vanessa