Hi, I have the following code:
Problem has been solved now
Printable View
Hi, I have the following code:
Problem has been solved now
Try debugging your code by adding lots of printlns to show the execution flow and the values of variables that control execution flow.
Thanks, I tried this but it didn't help too much. The files were being read in correctly, but I think there may be a problem with the scoping of the second if statement as when I put in a print statement there it did not print.
Sorry, I can not get your code to compile. I get lots of errors:
Code :/junk8.java:14: incompatible types found : java.util.ArrayList<java.lang.Integer> required: List<java.lang.Integer> List<Integer> l = new ArrayList<Integer>(); ^