PRG/421 Week 2 Java 2.15 LAB: Inventory (linked lists: insert at the front of a list)

Availability: In stock

Regular Price: $6.00

Special Price: $3.00

OR

PRG421 Week 2 Lab 2.15 LAB Inventory (linked lists insert at the front of a list)

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

PRG/421 Week 2 Java 2.15 LAB: Inventory (linked lists: insert at the front of a list)


Given main() in the Inventory class, define an insertAtFront() method in the InventoryNode class that inserts items at the front of a linked list (after the dummy head node).


Ex. If the input is:
4
plates 100
spoons 200
cups 150
forks 200


the output is:
200 forks
150 cups
200 spoons
100 plates

Regular Price: $6.00

Special Price: $3.00

Details

PRG/421 Week 2 Java 2.15 LAB: Inventory (linked lists: insert at the front of a list)

Given main() in the Inventory class, define an insertAtFront() method in the InventoryNode class that inserts items at the front of a linked list (after the dummy head node).

Ex. If the input is:
4
plates 100
spoons 200
cups 150
forks 200

the output is:
200 forks
150 cups
200 spoons
100 plates

Additional Information

Special Price $3.00

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.