Search:

Type: Posts; User: chalupabatman

Search: Search took 0.23 seconds.

  1. Replies
    3
    Views
    149

    Re: subclass and abstracts

    maybe should I have something in there? I did have it like this:



    team = new ArrayList<Player>();


    but netbeans said it was redundant to have the Player in the <>

    --- Update ---
  2. Replies
    3
    Views
    149

    subclass and abstracts

    Hey guys I have a quick question.. So I have a class called Team that is a collection of players and managers for a baseball team, and one of my required methods is to calculate the total amount of...
  3. [SOLVED] super() function how to make my program work without it

    Figured it out guess all I had to do was create an instance like this



    class Stack {
    Deque stack;

    public Stack() {
    stack = new Deque();
    }
  4. [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[]...
  5. [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 =...
  6. [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 6 of 6