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 ---
Type: Posts; User: chalupabatman
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 ---
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...
Figured it out guess all I had to do was create an instance like this
class Stack {
Deque stack;
public Stack() {
stack = new Deque();
}
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[]...
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 =...
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...