String转List
private List<String> strings;
strings = Arrays.asList(dataBean.getImgs().split(","));
String转数组
String ac = "1=2&/*?*/3";
String shuzu [] =null;
shuzu = ac.split("");//是[1=2&/,?,3] 特殊字符用中括号[*][?]
List转ArrayList
private List<String> strings;
strings = Arrays.asList(dataBean.getImgs().split(","));
ArrayList arrayList = new ArrayList(); arrayList.addAll(strings);
数组转List
String[] imagesUrl = {"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3252521864,872614242&fm=26&gp=0.jpg","https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2486381222,2419244753&fm=26&gp=0.jpg","https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3104686528,572431609&fm=26&gp=0.jpg","https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3529867560,1288932876&fm=26&gp=0.jpg","https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3437217665,1564280326&fm=26&gp=0.jpg","https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1830914723,3154965800&fm=26&gp=0.jpg", }; List<String> list = Arrays.asList(imagesUrl);