This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.LinkedList; | |
class ProductItem { | |
private int productId; | |
private String productName; | |
public ProductItem(int productId, String productName) { | |
this.productId = productId; | |
this.productName = productName; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.LinkedList; | |
// our product class that we created to create a product | |
class Product { | |
private String name; | |
private double price; | |
private String description; | |
// Getters and setters for product properties |
OlderNewer