I have the following code. It is giving me several errors
Syntax error on tokens, delete these tokens
Syntax error on token(s), misplaced construct(s)
Syntax error on token ")", delete this token
on the code
SwingUtilities.invokeLater(() -> {
init();
});
Is there something wrong with this code or is my Java just not working properly?