I'm trying to create blackjack (card game) in java. However, the shuffleDeck method written in another class cannot be called in the main method.
I looked it up on the site and books, but I'm not sure ... How can I call it? Please teach me if you like.
Source code
public class Deck {
private int deckCount; // Variable to keep track of the progress of the deck
private ArrayList
//山札(deck)に値を入れ、シャッフルするメソッド
public void shuffleDeck(List
}
public class MainGame {
public static void main(String[] args) throws Exception{
System.out.println ("Welcome to Blackjack");
List
//ここで呼び出したい
}
Recommended Posts