I\'m trying to use a java.lang.function.Function in my java 8 code base, but i keep getting the following error in Intellij.
Usage of API
If you are using maven then Add below line in your configuration pom.xml file and then reimport or build it from maven.
org.apache.maven.plugins
maven-compiler-plugin
3.3
1.8
1.8
Else select java compiler and Language Level from below path.
File > Project Structure > Project Settings > Modules > your Module name > Sources > Language Level > choose the one which you need.
Change Language level from here :-