Advertisement
IvaAnd

Main_card_01

Oct 29th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. package CardSuit;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5.  
  6. CardSuit[] values = CardSuit.values();
  7.  
  8. System.out.println("Card Suits:");
  9. for (int i = 0; i < values.length; i++) {
  10. System.out.printf("Ordinal value: %d; Name value: %s", values[i].ordinal(), values[i]);
  11. System.out.println();
  12. }
  13. }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement