= new ArrayList<String>( );
List<String> newList = new ArrayList<Integer>( );
1st is correct, 2nd will give you error
They two correct , but "newList" is more flexible.
I mean the first it list oy Arraylist
Обсуждают сегодня