Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert a list into ndarray
How to convert a list into ndarray
I don't know what a development language is, but in JAVA, it can be like this:

The conversion from list to array can be handled as follows:

ArrayList & lt string & gtlist = new ArrayList & lt string & gt ();

String[]strings = new String[list . size()];

List.toArray (string);

Conversely, what if you want to convert an array into a list? As follows:

String[] s = {"a "," b "," c " };

list list = Java . util . arrays . aslist(s);