Search:

Type: Posts; User: chalupabatman

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: Deque and Queues: Exception in thread "main" java.lang.NullPointerException Error

    I fixed it.. Just had to call the methods for the Deque class and set the deque in the Deque class to public and the make queue array equal to the deque array



    class Deque {
    public Object[]...
  2. [SOLVED] Re: Deque and Queues: Exception in thread "main" java.lang.NullPointerException Error

    well I put the extends Deque on my Queue class like so:


    class Queue extends Deque{
    Deque[] queue;
    int front, rear, count;
    private final int MAX_SIZE = 5;

    public Queue() {
    queue =...
  3. [SOLVED] Deque and Queues: Exception in thread "main" java.lang.NullPointerException Error

    Hello everyone, so I have this assignment where I have to create a Deque class and a Queue class and to be more efficient my professor wants me to create the deque class for then use the methods made...
Results 1 to 3 of 3