I should downgrade my Java version in Eclipse. Indeed, I have Java10 and I should use java7. I am trying to change the settings in "Window -> Preferences -> Java -> Compiler" or in the project properties -> Java Compiler, but Eclipse does not underline String.join for example (String.join is available from Java8)
Here are some screenshots:
Window -> Preferences -> Java -> Compiler
Project Properties -> Java Compiler