I'm probably being very silly, but it's driving me nuts. I have searched around but am relatively new to programming and am in over my head. Please help if you can! the bar parameter is taking an arraylist.toArray() and it's just full of strings.
public bar(Object[] contents) {
for (Object o : contents) {
String s = (String) o;
if (s == null) {
System.out.println("newline"); //checking
} else {
try {
arrayContents.add(new line(s));
} catch (Exception ex) {
System.out.println("error printing note: " + s + " " + ex + " in bar " + i);
}
}
i++;
}
// System.out.println(arrayContents);
}
ArrayList<String>
? Also, post your full stack trace. – Sotirios Delimanolis Oct 30 '13 at 21:29