Sorry, I can not get your code to compile. I get lots of errors:
/junk8.java:14: incompatible types
found : java.util.ArrayList<java.lang.Integer>
required: List<java.lang.Integer>...
Type: Posts; User: Norm
Sorry, I can not get your code to compile. I get lots of errors:
/junk8.java:14: incompatible types
found : java.util.ArrayList<java.lang.Integer>
required: List<java.lang.Integer>...
Try debugging your code by adding lots of printlns to show the execution flow and the values of variables that control execution flow.