Huston, we have a problem !

Rémi Forax forax at univ-mlv.fr
Fri Feb 18 10:19:35 PST 2011


On 02/18/2011 07:08 PM, "Zdeněk Troníček" wrote:
> As far as I understood the original question, it was as follows: Why we
> need to write
>
> List<Integer>  p = new ArrayList<>();
>
> and not only
>
> List<Integer>  p = new ArrayList(); ?
>
> Is there any special reason for<>?
>
> Z.

List<Integer>  p = new ArrayList(new ArrayList<String>());  // ok

List<Integer>  p = new ArrayList<>(new ArrayList<String>());  // not ok

R.







More information about the coin-dev mailing list