When compiling I figure the following problem:
In the properties of the file, the version of the JDK must be changed, since it was in version 14 and it was changed to version 1.8JDK: