Writing a blackjack console program in Java

Posted by user337465 on Stack Overflow See other posts from Stack Overflow or by user337465
Published on 2010-05-10T16:42:13Z Indexed on 2010/05/10 16:44 UTC
Read the original article Hit count: 469

Filed under:
|
|

Hello, I have an assignment of making a blackjack like program in a class. My first problem I am dealing with is creating an array of the cards. The professor wants an array setup with a txt file with the following format.

2 of hearts
2 of diamonds
2 of spades
2 of clubs
3 of hearts
3 of diamonds
3 of spades 

This goes on till face cards when it replaces the number with jack, queen, king, ace. Following the professors requirements, How would I take input from the txt file and just store the number and the hearts,diamonds,spades, and clubs. Thank you for the help

© Stack Overflow or respective owner

Related posts about arrays

Related posts about homework