I need to compile my source code with Java 6 for university. I currently have Java 8 JDK installed on my PC (Linux). How to compile in Java 6?
ps I understand that I will not be able to use any Java 7 or 8 features.
pps I understand that the java 6 source code will compile using the Java 8 JDK, however I found that I accidentally use the Java 6 post functions in my programs when compiling at home. When I try to compile the source code on lab computers in uni, I encounter a bunch of errors. for example, the inability to apply an object to a primitive.
source
share