From 8086f26019cd605f9aadbdc012723d3161a95578 Mon Sep 17 00:00:00 2001 From: Matthew Pineda Date: Thu, 31 May 2018 18:26:09 -0700 Subject: [PATCH] Add files via upload --- Transaction.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Transaction.java diff --git a/Transaction.java b/Transaction.java new file mode 100644 index 0000000..5bc5736 --- /dev/null +++ b/Transaction.java @@ -0,0 +1,25 @@ +public class Transaction { + + public int betAmount, payout; + public String betType, name; // bet type(red, black, number, etc) and name of player + + + public Transaction( String name, int betAmount, int payout) { + + this.name = name; + betType = Wheel.BetType(); + this.betAmount = betAmount; + this.payout = payout; + + } + + public String toString() { + + String output = ""; + + output += Wheel.transactionNum + "\t" + name + "\t" + betAmount + "\t" + betType + payout; + return output; + + } + +}