[JAVA] [Production progress] BlackJack: 01

At the beginning

As for what is BlackJack, there was a problem (?) "Try making BlackJack for beginner graduation" in this article. I started with a light feeling that Progate was just finished and it was just right.

Where it was made

--Specifications were easily decided --I made an array (["Diamond", "A"], ["Diamond", "2"] …… ["Clover", "K"]) representing one playing card.


	String[] strMark={"Diamond","heart","spade","Clover"};
	String[] strNumber={"A","2","3","4","5","6","7","8","9","10","J","Q","K"};

	for (int i=0;i<strMark.length;i++){
		for (int i2=0;i2<strNumber.length;i2++){
			String[] card = {strMark[i],strNumber[i2]};

from now on

――I want to put 52 pieces of the arrangement made in ↑ into the deck arrangement


    ArrayList<String[]> bills = new ArrayList<String[]>();

Define a bills array and



The card is added to bills in the above for statement.

Apparently it seems to be included, but when I output it,


Is displayed, so I want to do something about it.

At the end

It's still a rudimentary state, but I think I'll proceed slowly without being impatient. I think I'll improve my progress here little by little, so please watch with warm eyes.

Recommended Posts

[Production progress] BlackJack: 03
[Production progress] BlackJack: 01
[Production progress] BlackJack: 02
[Production progress] BlackJack: 04
Implemented "Blackjack".