Javatpoint Logo
Javatpoint Logo

How to convert ArrayList to Array and Array to ArrayList in java?

Let's see a simple example to convert ArrayList to Array and Array to ArrayList in Java:

Output:

Converting ArrayList to Array
Mango
Banana
Apple
Strawberry
Pineapple
Converting Array to ArrayList
[Mango, Banana, Apple, Strawberry, Pineapple]





Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA