Question: Use this declaration of the Node class: : final class Node char info; Node next; public Node(char letter, Node node) info letter: next = node;

Use this declaration of the Node class: : final class Node char info; Node next; public Node(char letter, Node node) info letter: next = node; Construct 1. Assignment 2. Node instantiation 3. Assignment 4. Ir statement S. While loop Examples nl - n4.next: nl.next - null; n. next next - new Node('#'.null) ni. Info - 94.next. info: nl.next.info - "C': 14 (nl-null) {...} else {...} while ((nil-null) 4 (nl.info--'A')) {...} Short exercises For each exercise Write the Jaya statements that will produce the "inatial setup - Write the Java statements that will transform the initial setup into the final configuration." User the Java Visualizer to execute your solution and visualize the data structures. Write a whole loop to make a Successively Node in the hced by P until wees to the first Noche lowercase) Use four B COD statement each fering variable to create a linked list headed by P and containing Nodes with info AB c. and D. in this eder. Use a single assignment Statement to make the variable 4 refer to the Node with 3 -E 31 Use a single assignment statement to make the Variable refer to the |Nads with info2 Use a single assig statement to Set the info of the Node referred to by pequal to the info of the Node referred to by you must access this info through do not refer to the character'3 directly . L
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
