Java programming language
I have been working on a project and I am havingtroubles with creating a method that adds up all prices for everyitem in the shopping cart in its initial and final status. I alsowould like to display the total price at the end of the initial andfinal status.
This is my code, each class has its own file. What doyou suggest I do to get the total price and displayit?
public class Item {
private String title;
private String description;
private double price;
public Item(String title, String description, double price) {
this.title = title;
this.description = description;
this.price = price;
}
public String getTitle() {
return title;
}
public String getDescription() {
return
PayPal Gateway not configured
PayPal Gateway not configured