Java Initialize List with Values in One Line

  Рет қаралды 296

Code Java

Code Java

4 ай бұрын

in this Java Collections framework video, I'm happy to share with you how to initialize a List collection with some default elements in just one line, using the Arrays.asList() and List.of() methods.
It will make create and initialize List in much more compact and convenient way. You will also learn how to initialize an ArrayList that is modifiable.

Пікірлер: 6
@DrTungNguyenVN
@DrTungNguyenVN 4 ай бұрын
thanks for sharing! What handy approaches!
@CodeJava
@CodeJava 4 ай бұрын
Glad it was helpful!
@YusufIbr
@YusufIbr 4 ай бұрын
pertamax gan
@tammamdarwish4298
@tammamdarwish4298 4 ай бұрын
We need more
@CodeJava
@CodeJava 4 ай бұрын
Sure, more will come. Thanks.
5 Ways to Iterate a Map in Java - Simple and Easy!
9:03
Code Java
Рет қаралды 318
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3,3 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 25 МЛН
How To Price For B2B | Startup School
17:46
Y Combinator
Рет қаралды 24 М.
Understand HTTP Basic Authentication - How it works
8:38
Code Java
Рет қаралды 228
Setup Oracle JDK 22 on macOS Step by Step
9:40
Code Java
Рет қаралды 358
Setup OpenJDK 22 on Windows Step by Step
7:05
Code Java
Рет қаралды 1,2 М.
Untitled Video July 15, 2024 8:38 AM
1:03
tombe 691
Рет қаралды 5
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 465 М.
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 9 МЛН