We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede37bd commit 4e30193Copy full SHA for 4e30193
clean-architecture/src/main/java/com/iluwatar/cleanarchitecture/Cart.java
@@ -59,6 +59,7 @@ public Cart(final Product prod, final int qty) {
59
* @return the total price of the products in the cart.
60
*/
61
public double getTotalPrice() {
62
- return product.getPrice() * quantity;
+ int getTotPrice = product.getPrice() * quantity;
63
+ return getTotPrice;
64
}
65
0 commit comments