Question: (java) // create an array of 4 grocery items as Strings // create a LinkedList // add them one by one // use assertEquals to
(java)
// create an array of 4 grocery items as Strings
// create a LinkedList
// add them one by one
// use assertEquals to check they're added in correct order
// insert a 5th grocery item (as a string)
// check the order again
Step by Step Solution
There are 3 Steps involved in it
Answer Heres a Java code snippet that demonstrates the described scenario using JUnit framework ... View full answer
Get step-by-step solutions from verified subject matter experts
