You could convert it to an array and then print that out with Arrays.toString(Object[])
:
System.out.println(Arrays.toString(stack.toArray()));
More Related Contents:
- Basic debugging with Java [closed]
- Unfortunately MyApp has stopped. How can I solve this?
- How to pretty print XML from Java?
- What are Java command line options to set to allow JVM to be remotely debugged?
- Remote debugging a Java application
- How to turn off the Eclipse code formatter for certain sections of Java code?
- Eclipse java debugging: source not found
- How to read and understand the java stack trace? [duplicate]
- Break when exception is thrown
- Debug a java application without starting the JVM with debug arguments
- Android Studio debugger highlights the wrong lines
- JBoss debugging in Eclipse
- Deciphering variable information while debugging Java
- Locally declared variables can not be inspected
- How to debug a multi-threaded app in IntelliJ?
- Debugging in Maven?
- How can I debug applications under Java Web Start (JNLP)?
- How do I deal with a ClassNotLoadedException while debugging?
- Eclipse logcat debugging
- Eclipse debugging “source not found”
- Java object ID in jvm
- Cannot set Java breakpoint in Intellij IDEA
- Why does the debugged program slow down so much when using method entry debugging?
- Is there a performance difference between Javac debug on and off?
- Pretty print XML in java 8
- What does the javac debugging information option -g:vars do?
- What does it mean if a variable has the name “this$0” in IntelliJ IDEA while debugging Java?
- Why does the Eclipse debugger give the error “Source not found” seemingly without reason?
- What different breakpoint icons mean in Eclipse?
- Attach debugger to application using Eclipse