Closed kevinnaruse closed 11 years ago
You know you could edit the code directly through navigating in the website?
Click Edit and then edit away! Make sure though that you're inferring Generic type arguments for the ArrayLists (it's a requirement by ArrayList itself)
Also, what is Eclipse telling you that you can't commit?
yup, never mind the earlier mention of problem with commit upstream. it was just a temporary internet glitch, I tried again and it uploaded to github fine. right now i am reading up on the generics website you mentioned, I'll let yo know if I can find any ideas.
I am about to pull now. I am working on a detailed class definition of Card and getting specifics on DeckArrayManager class worked out. please feel free to throw any pointers, tips, or anything I may have overlooked.
Ok. I guess that works then.
I ran into difficulties with commits on Github (again!!!!), so I will have to copy and paste the DeckArrayManager code for the newest version. Here it is...
package com.whitejack.api;
import java.util.ArrayList;
public class DeckArrayManager extends Deck { private int numDecks = 1; private int numCards = 52; private static DeckArrayManager instance; private boolean cardIsPlayable = true; private Card[] card; private int[] deck = new int[52]; private String[] suits = {"Spades", "Hearts", "Diamonds", "Clubs"}; private String[] ranks = {"Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"}; private int count = 0; private ArrayList stack = new ArrayList();
private ArrayList heap = new ArrayList();
private ArrayList recycleBin = new ArrayList();
}