// combine the commonContents and the imageContents
combinedContents = new Object[commonContents.length
+ imageContents.length][2];
int combined = 0;
for (int i = 0; i < commonContents.length; i++) {
combinedContents[combined++] = commonContents[i];
}
for (int i = 0; i < imageContents.length; i++) {
combinedContents[combined++] = imageContents[i];
}