Jane is a programmer and she used to participate in various coding contests. Since she is very much interested in data structure, she planned to participate in a contest for data structures conducted by 'Secrets of Champions'. In that contest, she is asked to write a program in Java to perform following operations: Define a Class with following format:class Node{int data;Node next;}Include functionsappend --- to add data at the end of the linked list.Reverse --- to reverse the linked list.display --- to display all the data in the linked list.How can you help her to write this code?Note: Implement the main() inside the class 'List'Input and Output Format:Refer sample input and output for formatting specifications.Sample Input and Output:Enter the value:9Do you want to add another node? Type Yes/NoyesEnter the value:10Do you want to add another node? Type Yes/NoYesEnter the value:26Do you want to add another node? Type Yes/NoYesEnter the value:8Do you want to add another node? Type Yes/NonoThe elements in the linked list are: 9 10 26 8The elements in the reversed linked list are : 8 26 10 9
Answers
Answered by
0
Answer:
no
lady Augusta Ada Lovelace was the first programmer
Explanation:
mark me as brainlist please please
Similar questions