|
|
|
|
|
by instcode
5777 days ago
|
|
Nice, but I prefer C# there as well where you use the var keyword, like this:
var tickets = new ArrayList<Ticket<ThingYouLove>>();
Actually, JDK7 is better in this case because it helps developer to "program to an interface". |
|
Both are still syntactic sugar implemented as compiler tricks, but the C# one simply does more.