examples of collection literals
who will be answer the question correctly I will mark him/her brainliest
only two examples
Answers
Answered by
0
Step-by-step explanation:
collection literal is a syntactic expression form that evaluates to an aggregate type, such as an array, List , or Map . Many languages support collection literals. A List literal in Java might look like: List<Integer> list = #[ 1, 2, 3 ];
Similar questions