JEP 186: Collection Literals
Moshe Sayag
msayag at gmail.com
Tue Jan 14 05:52:00 PST 2014
1. What is the exact meaning of:
List<Integer> list = #[ 1, 2, 3 ];
Will 'list' be an ArrayList, a LinkedList or an immutable list?
2. Java already has the curly brackets {...} to construct an array.
int[] array = { 1, 2, 3 };
How will the new literal go with it?
Will we have:
int[] array = #[ 1, 2, 3 ];
What about
List<Integer> list = { 1, 2, 3 };
Moshe
On Tue, Jan 14, 2014 at 2:17 AM, <mark.reinhold at oracle.com> wrote:
> Posted: http://openjdk.java.net/jeps/186
>
> - Mark
>
>
More information about the lambda-dev
mailing list