package com.itheima;
import java.util.*;
public class Toarray {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList<String>al=new ArrayList<String>();
al.add("njsajdfsjkl");
al.add("hjskdnf");
String[]s=al.toArray(new String[0]);此处中括号中的0代表什么意思是在初始化字符数组的长度吗
System.out.println(al);
}
} |
|