看板 java 關於我們 聯絡資訊
※ 引述《Atwo (A兔)》之銘言: : 之前還可以編譯成功執行 : 但今天不知不小心突然修到哪裡 : 出現了以下的錯誤訊息: : DeckOfCards.java:28: cannot find symbol : symbol : constructor Card(java.lang.String) : location: class Card : suit[ count ] = new Card( suits[ count / 13 ] ); : ^ : DeckOfCards.java:29: cannot find symbol : symbol : constructor Card(java.lang.String) : location: class Card : face[ count ] = new Card( faces[ count % 13 ] ); : ^ : 請問一下這邊是問題出在哪裡? : 如果deck[]可以過 那suit[] 和face[]也可以過吧 : 我想了一下午還是想不透 : 有請板上各位前輩了 錯誤訊息說的很清楚,Card class 沒有(缺了)只接受一個 String 為參數的 constructor。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.173.136.126
Atwo:我解決了!! 感謝前輩解惑 我都快哭了O_Q 12/23 18:36