Answer
To create Arraylist from given array use below code
|
Example
|
import java.util.ArrayList; public class JavaApplication1 { |
Output
|
Name 1 |
Programming question & answer
To create Arraylist from given array use below code
|
Example
|
import java.util.ArrayList; public class JavaApplication1 { |
Output
|
Name 1 |