###前提・実現したいこと
実行用クラス(Main)で、
手札(hand)として配列に格納されているカードを表示するメソッドprintHand(Card[] hand)と配列に格納されているカードをシャフルするメソッドshuffle(Card[] hand)を定義して、トランプ2の5枚のカードを配列handに格納して、表示してから、シャフルして再び画面に表示しなさい。
###困っていること
エラーで.クラスがありません。と出ます。初歩的なエラーとして{}が足りないのかと思っていますが理由が全く分かりません。
###該当のソースコード
java
1class Main 2{ 3 public static void main( String[] args ) 4 { 5 int card[]; 6 card=int; 7 System.out.print(card[0]); 8 System.out.print(card[1]); 9 System.out.print(card[2]); 10 System.out.print(card[3]); 11 System.out.print(card[4]); 12 } 13 public static printHand(card[] hand) 14 { 15 int card[]=new int[5]; 16 card[0]=(Suit.HEARTS,1); 17 card[1]=(Suit.SPADES,2); 18 card[2]=(Suit.DIAMONDS,10); 19 card[3]=(Suit.CLUBS,13); 20 card[4]=Joker(); 21 return card; 22 } 23 /*public static shuffle(card[] hand) 24 { 25 int card = (int)Math.floor(Math.random() * (double)this.deck.length); 26 return(); 27 }*/ 28} 29class Suit 30{ 31 static final int SPADES = 1; 32 static final int HEARTS = 2; 33 static final int CLUBS = 3; 34 static final int DIAMONDS = 4; 35} 36class Card 37{ 38 int suit; 39 int number; 40 String str; 41 Card( int suit, int number ) 42 { 43 this.suit = suit; 44 this.number = number; 45 switch( suit ) 46 { 47 case Suit.SPADES: 48 str = "S"; break; 49 case Suit.HEARTS: 50 str = "H"; break; 51 case Suit.CLUBS: 52 str = "C"; break; 53 case Suit.DIAMONDS: 54 str = "D"; break; 55 default: 56 str = "?"; break; 57 } 58 switch( number ) 59 { 60 case 1: 61 str += "A"; break; 62 default: 63 str += number; break; 64 case 10: 65 str += "T"; break; 66 case 11: 67 str += "J"; break; 68 case 12: 69 str += "Q"; break; 70 case 13: 71 str += "K"; break; 72 } 73 } 74 public String toString() 75 { 76 return str; 77 } 78} 79class Joker extends Card 80{ 81 Joker() 82 { 83 super( 0, 0 ); 84 } 85 public String toString() 86 { 87 return "Jk"; 88 } 89} 90 91
###試したこと
課題に対してアプローチしたことを記載してください
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報