StringBuffer[] stringBuffers = new StringBuffer[10]; for (int i = 0; i < stringBuffers.length; i ++) { stringBuffers[i] = new StringBuffer(); stringBuffers[i].append("StringBuffer at index " + i); }