List转换为Array数组

1.List<FilingFCSegmentCorrection> fcList=new ArrayList<FilingFCSegmentCorrection>();

FilingFCSegmentCorrection [] fcArray=fcList.toArray(new FilingFCSegmentCorrection[fcList.size()]);

或者FilingFCSegmentCorrection [] fcArray=fcList.toArray(new FilingFCSegmentCorrection[]{});

System.out.println(fcArray.length);

 

2.List<FilingFCSegmentCorrection> list=Arrays.asList(fcArray);

System.out.println(list);

你可能感兴趣的:(list,Arrays,互转)