Question: what is the right answer ,in java , full explanation please , thank you public class Tichet i private string row; private int seat: private

public class Tichet i private string row; private int seat: private double price: public Ticket(String row, int seat, double price) 1 this.row = row: this.seat = seat; this. price = price; ) public string getRow() return row: 1 public int getSeat() 1 return seat: 1 public double getPricel) 1 return price; 1 1 public class Transaction I private int myNumTickets: private ArraylisteTicket> tickList; public Transaction(int numTicks) | myNumTickets = num Ticks; tickList = new Arraylist (): Scanner kb = new Scanner(Systemin): for (int i=0; i =kb inext() System.out.println("Enter seat: "); int seat = kb.nextint(l: System.out.println("Enter price: "); double price = kb.nextDouble(l); ccode to create Ticket object and insert it into array lists \} 1 //returns total amount pald for this transaction public double totalPaid() \{ double total =0.0; for (int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
