I just put only the beginning of the program, the program itself has over 400 lines. I have there Collection.shuffle - I want to shuffle the deck. To check out, if it is really shuffled, I want to...
Type: Posts; User: Kosmic
I just put only the beginning of the program, the program itself has over 400 lines. I have there Collection.shuffle - I want to shuffle the deck. To check out, if it is really shuffled, I want to...
I just put only the beginning of the program, the program itself has over 400 lines. I have there Collection.shuffle - I want to shuffle the deck. To check out, if it is really shuffled, I want to...
OMG, I can't even send a message here: it write "Thank you for posting! Your post will not be visible until a moderator has approved it for posting.
I just put only the beginning of the program, the program itself has over 400 lines. I have there Collection.shuffle - I want to shuffle the deck. To check out, if it is really shuffled, I want to...
Does it work?
--- Update ---
I have there Collections.shuffle. I need to check, if the deck is really suffled, so I want to add there System.out.println("and here the name of the each cards")....
ok, I'll give you an example. I wrote there Collections.shuffle. I just need to check if the deck is shuffled. I wanted to write System.out.println(" and here is written the name of the card, but sth...
ok, I'll give you an example. I wrote there Collections.shuffle. I just need to check if the deck is shuffled. I wanted to write System.out.println(" and here is written the name of the card, but sth...
ok, I'll give you an example. I wrote there Collections.shuffle. I just need to check if the deck is shuffled. I wanted to write System.out.println(" and here is written the name of the card, but sth...
I don't know how to reffer to the enum. For example, I have one chosen card and in my main class I need to find out, which type is chosen. FE if card chosen is ENERGY, do sth. If not, do sth else....
enum Cards {
ENERGY(6),
CORVETE(2),
BATTLE_HAMMER(2),
BATTLE_CRUISER(2),
BATTLE_AXE(2),
COLONY_SHIP(2),
CONSTRUCTOR(2),
DEFENDER(2),
FRIGATE(2),