Hello, I have a question about line one in example one, entitled "New Workbook" here is line one:
// Workbook wb = new HSSFWorkbook(); My compiler complained about the declaration "Workbook", and suggested that I change it to HSSFWorkbook, which I did and it worked fine. My questions is about the the statement. I have seen a similar pattern in another example that I was studying. Such as: // protected final List<ItemFile> dataList = new ArrayList<ItemFile>(); Where the declaration is farther up the hierarchy and the instantiation lower. I don't understand why one would do this. Can someone please point me in the right direction? Thanks, JSpence. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
