Skip to content

Instantly share code, notes, and snippets.

@lwl5219
Created April 8, 2019 10:01
Show Gist options
  • Save lwl5219/47720214b0e3bba9040b13447520955f to your computer and use it in GitHub Desktop.
Save lwl5219/47720214b0e3bba9040b13447520955f to your computer and use it in GitHub Desktop.
[The basic of Java] #JavaBase
// 1. Convert List to Array
private String[] toString(List<String> list) {
String[] as = new String[list.size()];
as = list.toArray(as);
return as;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment