リストへの配列

  例えば、整数文字列のアレイは、一般的なリストに変換
、文字列[] = pathArr deptPath.split( "")
点灯<整数> = deptIds Arrays.stream(pathArr).MAP(整数::のvalueOf).collect(Collectors.toList ());

  それは機能の変化に別の一般的なマップに変換される場合、文字列型などに回します
文字列[] pathArr = deptPath.split( "")。
点灯の<string> deptIds = Arrays.stream(pathArr).MAP(文字列::のvalueOf).collect(Collectors.toList())。

おすすめ

転載: www.cnblogs.com/luizw/p/11423803.html