The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

From the error compiler there's something wrong with " if (rows.size() < 0) { return; }. Now i know thats obviously wrong but how could i resolve it into ArrayList<Integer> terms? Ive tried a couple methods but they didnt work as well. For my driver, i just declared a new variable to print the result and it gave me [1] [1] going down a column. If anyone does have time on their hands, how would using one object of arraylist look like?

Re: ArrayList recursion return help

Is there a discrepancy in the code?

Yes I would say there is if it doesnt' do what you want it to do.

Try debugging the code by adding printlns to show the values of variables and the execution flow as the program executes. If you know how the program is supposed to execute, the print outs should show you where the problem is.