Question: Write a method named csvToReverseList() that: a) Takes in a String containing a comma-separated list of words, b) Builds a linear, singly-linked list of the

 Write a method named csvToReverseList() that: a) Takes in a String

Write a method named csvToReverseList() that: a) Takes in a String containing a comma-separated list of words, b) Builds a linear, singly-linked list of the words in reverse order, and c) Returns a reference to the top Node of the new list. For example, if csvToList("Me, You, Them, The Others") is called, it will return a reference to the first node of the following linked list: "The Others" "Them" "You" "Me" Here is the definition of the Node class: class Node { public String text; public Node next; public Node(String text, Node next) { this.text - text; this. next next; } } Additional Requirements: This method is not part of a larger linked list class, so you do not have access to any prebuilt methods like insert() or delete() or to an instance variable like count. Your method must be no more than 15 lines long

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!