DrClap wrote:Oi, Java 6 compatible code :) We're living in the Java 7 era now:
private ArrayList<String> companyNames = new ArrayList<String>();
Nice how the forum doesn't properly format this code without help.
private ArrayList<String> companyNames = new ArrayList<>();
DrClap wrote:Same here. Perhaps you're right, I'll bet Java 7 still doesn't compete with Java 6 in usage; you don't just yank out a piece of tech that has been around for a great number of years.
Yeah, I knew that. I'm still in the "Can I use Java 7 without having to explain it?" world (still using Java 6 here at work) and so I just opted for backwards compatibility.
EJP wrote:I have to say, I didn't notice that either. Apparently my brain blotted it out on account of "Surely that isn't a credible thing to want, there must be some mistake" and carried on reading from the second sentence.
How exactly is that going to 'create a class ... that is identical to ArrayList'? Please stick to the topic.