I need help please I need steep by step

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

I need help please I need steep by step

Post by answerhappygod »

I need help
please I need steep by step
I Need Help Please I Need Steep By Step 1
I Need Help Please I Need Steep By Step 1 (45.54 KiB) Viewed 30 times
Predict the outcome of the following program: import java.util.*; public class StackTest { public static void main(String [largs) { Stack <Integer> s = new Stack <Integer> ; int [] data = new int[] { 10, 20, 30, 40, 50, 60, 70]; for (int i = 0; i < data.length; i++) { s.push(data[i++]); if (i < data.length) s.push (data); System.out.print (s.pop() + ""); } while(!s.empty()) System.out.print(s.pop()+".");
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply