I've been having a thousand issues with my code and am not sure what is wrong with it.
This code runs perfectly in the eclipse IDE, but when I take it out to try in Ready to program java
it prompts me with a compilation error from the following code:
ArrayList<ArrayList<Integer>> tempLayout = new ArrayList<>();
and
ArrayList<Integer> row = new ArrayList<>();
Give the errors:
Invalid assignment operator
!= expected instead of this token
misplaced construct(s)
Invalid name
Invalid assignment operator
!= expected instead of this token
misplaced construct(s)
Invalid name
My environment is Windows 7 running JRE 6 (I must use jre6, I cannot update it)
What is the issue in my code? What should I change so it works?