PIbd-22_Bondarenko_M.S._War.../Deck.java

23 lines
337 B
Java
Raw Normal View History

2022-11-16 18:24:14 +04:00
public enum Deck {
One(1),
Two(2),
Three(3);
Deck(int i) {
}
public static Deck GetDeck(int i){
switch (i)
{
case 1:
return One;
case 2:
return Two;
case 3:
return Three;
}
return null;
}
}