5) Delete and ith node on a linked list. Be sure that such a node exists. Please
ID: 3620936 • Letter: 5
Question
5) Delete and ith node on a linked list. Be sure that such a node exists. Please, Read the direction.
Direction: First create a single Java application named linklist (thus, it contains a
public static void main(String[] args) method), then implement a separate method within this class. Name this method public static void exerciseN().
When exerciseN() is called from your main(…) method, it should create a set of test data, then call a static method which implements the requested Exercise behavior. Pass all data as parameters into this supporting static method.
Your exerciseN() code only needs to build one set of test data before it calls its corresponding implementing method. But: you might think about creating multiple data sets, calling the implementing method multiple times,passing in a different data set each time. Thus, you are testing the correct behavior of your solution across a variety of different inputs.
print out any information that illustrates the correct operation of your implementation.