Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class listItem {
- // Constructor
- int price;
- String[] name;
- public listItem(String[] itemName, int itemPrice) {
- String[] name = itemName;
- price = itemPrice;
- }
- // Get Price
- int getPrice() {
- return this.price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement