Question: I want a java code. In the main method(main class), there will be an array created, such as {12,15,84,64}. Then this array will be passed
I want a java code.
In the main method(main class), there will be an array created, such as {12,15,84,64}.
Then this array will be passed to another class(class named leaf) as object.
In the leaf class, program should add array into stack and return a linked list back to main class and printed.
If you can finish above, I will give good as rating the answer. If you could fulfilled something below, it would be better.
If you can, please create a searching class for searching. Main class will pass a number by value to check if the number in the linked list which is created from leaf class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
