I have come into an unusual problem. I've submitted my code for grading and it seems that when my professor compiles/run my Java program it wont run on her computer. I've tried on both windows and Mac machine and it runs and compiles just fine. I am guessing this issue is due to an outdated JDK. If you want the whole code of my project (which is kind of long) I can provide that. She's getting the following error:
Program.java:16: illegal start of expression
SwingUtilities.invokeLater(() -> {
I believe this error is due to Syntax, but when I run this in multiple IDEs on multiple OS's it never shows up that error. She's running the exact same thing as I am.