About 10,500,000 results
Open links in new tab
  1. Newest 'java' Questions - Stack Overflow

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

  2. 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 …

  3. 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....

  4. 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 …

  5. 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).

  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 - Turn stack into a string? - Stack Overflow

    I'm working on a project for class and we need to create a method that takes the stack we created and when called print itself out as a string. This is what I have so far; the method is at the bot...

  8. 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 …

  9. 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.

  10. 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 …