About 14,500,000 results
Open links in new tab
  1. Java Collections (LIFO Structure) - Stack Overflow

    I am looking in the Collections framework of Java for a LIFO Structure (Stack) without any success. Basically I want a really simple stack; my perfect option would be a Deque, but I am in Java 1.5....

  2. Newest 'java' Questions - Stack Overflow

    2 days ago · Stack Overflow | The World’s Largest Online Community for Developers

  3. callstack - What causes a java.lang.StackOverflowError - Stack Overflow

    Jul 8, 2010 · What can cause a java.lang.StackOverflowError? The stack printout that I get is not very deep at all (only 5 methods).

  4. java - What is the default stack size, can it grow, how does it work ...

    Jan 20, 2003 · 104 How much a stack can grow? You can use a VM option named ss to adjust the maximum stack size. A VM option is usually passed using -X {option}. So you can use java -Xss1M …

  5. string - How do I copy a stack in Java? - Stack Overflow

    Oct 27, 2011 · The Stack class is a sub-class of AbstractList. Simply treat it like an AbstractList, iterate through the elements in the stack using the get(int index) method, from 0 to the length of your …

  6. Stack push, pop, peek algorithms in Java - Stack Overflow

    Mar 13, 2013 · 0 If you want to use Stack data structure and you don't want to incur the cost of Synchronization then you can use Dequeue. Stack class available in Java extends Vector.

  7. java - Why should I use Deque over Stack? - Stack Overflow

    Deque<Integer> stack = new ArrayDeque<>(); I definitely do not want synchronized behavior here as I will be using this datastructure local to a method . Apart from this why should I prefer Deque over …

  8. java - Print the stack trace of an exception - Stack Overflow

    Jul 25, 2011 · How do I print the stack trace of an exception to a stream other than stderr? One way I found is to use getStackTrace() and print the entire list to the stream.

  9. java - What is a stack trace, and how can I use it to debug my ...

    About this question - quite often I see a question come through where a novice programmer is "getting an error", and they simply paste their stack trace and some random block of code without …

  10. What is the use of printStackTrace () method in Java? - Stack Overflow

    One of the most powerful features in modern IDE's is the ability to look up documentation (called javadoc) for a given Java method. In Eclipse it is Shift-F2 when the cursor is placed on the …