How to create an array by calling args contructor?
StringBuilder[] sb=new StringBuilder[100];
But if I check sb[0] it is null. I want that sb[0] to sb[99] initialized with "".
Following results in an error:
StringBuilder[] sb=new StringBuilder[100]("");
EDIT: Or I have to do this:
for(StringBuilder it:sb)
{
it=new StringBuilder("");
}
StringBuilder[] sb=new StringBuilder[]{"", "".... 100}
;it
which would not be reflected in the array. There are 3 nearly identical answers you have which explain what to do