String[] columnNames = {"Priority", "ShippingService", "Cost", "AdditionalCost", "ShipToLocations"};
int size = intlShippingServiceOptions.size();
Object[] [] dataTable = dataTable = new Object[size][5];
for (int i = 0; i < size; i++) {
InternationalShippingServiceSelector selector = (InternationalShippingServiceSelector)intlShippingServiceOptions.get(i);
InternationalShippingServiceOptionsType sso = selector.getSelectedShippingServiceOption();
dataTable[i][0] = new Integer(i+1).toString();
dataTable[i][1] = sso.getShippingService().toString();
AmountType cost = sso.getShippingServiceCost();
String sCost = " ";
if (cost != null) {
sCost = cost.getValue() + "";
}
dataTable[i][2] = sCost;
cost = sso.getShippingServiceAdditionalCost();
if (cost != null) {
sCost = cost.getValue() + "";
}
else {
sCost = " ";
}
dataTable[i][3] = sCost;
String sShipToLocations = "";
String[] arrShipToLocations = sso.getShipToLocation();
int cnt = arrShipToLocations != null ? arrShipToLocations.length : 0;
if (cnt > 0) {
sShipToLocations = arrShipToLocations[0];
for (int j = 1; j < cnt; j++) {
sShipToLocations += ";" + arrShipToLocations[j];