String[] str = new String[] {"hi","hello"}; StringBuilder[] sbs = new StringBuilder[str.length]; Arrays.setAll(sbs, i -> new StringBuilder(str[i]));