Question: In our java Eclipse IDE we have a method which returns LinkedListjustRandon ( LinkedList > qs , LinkedList > as , int random. the body

In our java Eclipse IDE we have a method which returns LinkedListjustRandon(LinkedList>qs, LinkedList>as, int random. the body of the function has few statement int pickedIndex = random - currentCount; String selectedReply = qs[pickedListIndex].get(pickedIndex); String relatedAnswer =as[pickedListIndex].get(pickedIndex); Since our method returns LinkedList and takes in the parameter LinkedList and not array list how can we make the above statement more suitable for an linkedList rather than an Array String

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!