About 7,170,000 results
Open links in new tab
  1. 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 …

  2. java - What is a StackOverflowError? - Stack Overflow

    What is a StackOverflowError, what causes it, and how should I deal with them?

  3. Newest 'java' Questions - Stack Overflow

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

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

    Here are a few reasons why Deque is better than Stack: Object oriented design - Inheritance, abstraction, classes and interfaces: Stack is a class, Deque is an interface. Only one class can …

  5. java - How to sum elements of a stack - Stack Overflow

    else System.out.println(s); } } I am trying to make a simple program that will take input for a user, find out the multiples of 3 & 5, then return the sum of the multiple. I have all the multiples …

  6. Reversing a stack in java

    Jun 6, 2017 · You are emptying the stack before calling reverse. If you keep popping elements off the stack until a.empty() returns true, then you have emptied the stack, and you are passing …

  7. Stacks in Java with exceptions - Stack Overflow

    Jan 16, 2013 · Question : b) A Stack is a last-in first-out (LIFO) data structure. Write a Java class Stacklnt that stores a stack of integers using an alray as its private data structure. A Stacklnt …

  8. callstack - What causes a java.lang.StackOverflowError - Stack …

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

  9. java - Creating a fixed-size Stack - Stack Overflow

    Oct 11, 2011 · I want to create a Stack in Java, but fix the size. For example, create a new Stack, set the size to 10, then as I push items to the stack it fills up and when it fills up to ten, the last …

  10. java - Implementing stack using linked lists - Stack Overflow

    What's the best way to implement a stack using linked lists in Java? EDIT: I would define best as most efficient using clean code. I have already used an array to implement a stack, but am not …