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.
--Specifications were easily decided --I made an array (["Diamond", "A"], ["Diamond", "2"] …… ["Clover", "K"]) representing one playing card.
BlackJack.java
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]};
System.out.println(Arrays.deepToString(card));
}
}
――I want to put 52 pieces of the arrangement made in ↑ into the deck arrangement
BlackJack.java
ArrayList<String[]> bills = new ArrayList<String[]>();
Define a bills array and
BlackJack.java
bills.add(card);
The card is added to bills in the above for statement.
Apparently it seems to be included, but when I output it,
[Ljava.lang.String;@5c8da962,
Is displayed, so I want to do something about it.
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.