summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/introducing-tours/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/travelsample/contributions/introducing-tours/src/main/java/com')
-rw-r--r--sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java b/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java
index 056becf435..629ea7b5ec 100644
--- a/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java
+++ b/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java
@@ -28,8 +28,10 @@ import com.tuscanyscatours.Updates;
public class ShoppingCartImpl implements Checkout, Updates {
private static List<String> bookedTrips = new ArrayList<String>();
+ protected String currency = "USD";
+
public void makePayment(BigDecimal amount, String cardInfo) {
- System.out.print("Charged $" + amount
+ System.out.print("Charged " + currency + " " + amount
+ " to card "
+ cardInfo
+ " for "