Код: Выделить всё
import java.util.Scanner;
public class Domino {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)){
System.out.print("Enter the number of players: ");
int NumOfPlayers = scanner.nextInt();
int CardsPerPlayer = Math.round(91/NumOfPlayers);
System.out.println(CardsPerPlayer);
}}
class Tile {
private int square1; //value of first square
private int square2; //value of second square
//class constructor
public Tile(int first, int second) {
square1 = first;
square2 = second;
}
//transform to string
public String toString() {
return square1 + "-" + square2;
}
}
class Deck {
String[][] twoD_arr = new String[13][13];
for (int i=0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/79077408/error-while-building-a-program-which-should-output-assigned-domino-tiles-for-eac[/url]