diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-23 16:30:46 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-23 16:30:46 +0000 |
commit | 7fec7fecf0fe3c9c4c604cc202a90e171c2151cf (patch) | |
tree | fda6ab85ae78928b291ab597fe18257f9406df54 /sandbox/travelsample/contributions/introducing-tuscanyscatours-contribution/src/main/java/com | |
parent | 37ab6c658ab868681e7d7a2ecb975c6dddedc897 (diff) |
Clean up the Introducing sample and the top-level pom.xml
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@777953 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/travelsample/contributions/introducing-tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sandbox/travelsample/contributions/introducing-tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java b/sandbox/travelsample/contributions/introducing-tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java index 09e5d322a3..db551501e1 100644 --- a/sandbox/travelsample/contributions/introducing-tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java +++ b/sandbox/travelsample/contributions/introducing-tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java @@ -26,7 +26,8 @@ public class ShoppingCart implements Checkout, Updates { private static List<String> bookedTrips = new ArrayList<String>();
public void makePayment(BigDecimal amount, String cardInfo) {
- System.out.print("Charged $" + amount + " to card " + cardInfo + " for trips" );
+ System.out.print("Charged $" + amount + " to card " + cardInfo + " for " +
+ (bookedTrips.size() > 1 ? "trips" : "trip"));
for (String trip : bookedTrips){
System.out.print(" " + trip);
}
|