double total = 0;
NumberFormat form = NumberFormat.getCurrencyInstance();
java.util.Iterator iter = order.getLineItemIter();
for (int i = 0; iter.hasNext(); i++) {
OrderLineTypeFacade lineItem = (OrderLineTypeFacade) iter.next();
// Compute subtotal and total
double price = lineItem.getItemPrice();
int qty = lineItem.getItemQuantity();
double subtotal = qty * price;
total += subtotal;
form.setCurrency(lineItem.getItemPriceCurrency());
System.out.println("\n"
+ (i + 1)
+ ". Part No.: "
+ lineItem.getItemPartNumber()
+ "\n Description: "
+ lineItem.getItemDescription()
+ "\n Price: "
+ form.format(price)
+ "\n Qty.: "
+ qty
+ "\n Subtotal: "