Compiler output
prog.java:23: error: no suitable method found for add(ArrayList<Object>)
seats.add(new ArrayList<>());
^
method ArrayList.add(int,ArrayList<Integer>) is not applicable
(actual and formal argument lists differ in length)
method ArrayList.add(ArrayList<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to ArrayList<Integer> by method invocation conversion)
method AbstractList.add(int,ArrayList<Integer>) is not applicable
(actual and formal argument lists differ in length)
method AbstractList.add(ArrayList<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to ArrayList<Integer> by method invocation conversion)
method AbstractCollection.add(ArrayList<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to ArrayList<Integer> by method invocation conversion)
prog.java:24: error: no suitable method found for add(ArrayList<Object>)
visited.add(new ArrayList<>());
^
method ArrayList.add(int,ArrayList<Integer>) is not applicable
(actual and formal argument lists differ in length)
method ArrayList.add(ArrayList<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to ArrayList<Integer> by method invocation conversion)
method AbstractList.add(int,ArrayList<Integer>) is not applicable
(actual and formal argument lists differ in length)
method AbstractList.add(ArrayList<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to ArrayList<Integer> by method invocation conversion)
method AbstractCollection.add(ArrayList<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to ArrayList<Integer> by method invocation conversion)
2 errors
javac failed: errno= return=256 at /home/marius/perl5/bin/gruntmaster-compile line 22.