StringBuffer subscriptions = new StringBuffer();
if (subscriptionIds != null) {
for (int i = 0; i < subscriptionIds.length; i++) {
subscriptions.append(subscriptionIds[i]).append(" ");
}
}
System.out.println("Subscriber Email Address: " + emailAddr +
"\nSubscriptions: " + subscriptions);