Question: in java Ex3) Given the file arraympOfStack.java then write a main method: - declaring two stack objects 51, 52; - reads a sequence of numbers;
Ex3) Given the file arraympOfStack.java then write a main method: - declaring two stack objects 51, 52; - reads a sequence of numbers; store the even ones in the stack S1, and store the odd ones in the stack S2. - print the even numbers followed by odd ones. Output for exercise 3: enter sequence of integers and stop with o The even one's aze The odd ones are 531 BUILD SUCCESSFUL (total time: 20 seconds 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
