var keyword not reconized in JDK 10
I have installed netbeans (Apache version) with JDK 10 successfully, but can't use var keyword in my project, It keep saying cannot find symbol . Any help would be appreciated. To use the var keyword with JDK 10 in NetBeans: Ensure that you are running the latest version of Apache NetBeans . In NetBeans add JDK 10 as a Java platform ( Tools > Java Platforms > Add Plaform... ). It is not necessary to make JDK 10 the default. Create a simple Java application ( File > New Project... > Java > Java Application ) and declare a var variable (e.g. var v = 7; ) within the main() method. Select the