Question: Java netbeans Exercise#2 Write a method that takes three stacks of integers (intStack, oddStack, evenStack) as parameters. The method should move the odd integers in
Exercise#2 Write a method that takes three stacks of integers (intStack, oddStack, evenStack) as parameters. The method should move the odd integers in intStack to oddStack and the even integers of intStack to evenStack Test your method by splitting a stack of integers into two stacks one holding the odd integers and the other holding the even integers and print the content of both from main ( ) . Note: The class ArrayStack has a method that prints the content of the stack which you can use
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
