yg1a20 2020-12-04 09:07 采纳率: 7.1%
浏览 50

这个怎么弄,主要是怎么后面几步

Create a Quiz class. This class will handle the interaction with the user. The constructor should take a string which is the filename name of the questions and answers to use. It should have a FlashCardReader and an instance variable that will hold the ArrayList of FlashCards.

The constructor uses the getFlashCards() method, in the instance of FlashCardReader it has declared, to create and fill the ArrayList with FlashCards.

  • 写回答

1条回答 默认 最新

  • 陆卿之 2023-05-10 14:48
    关注
    /**
     * 创建一个测试类,该类将处理与用户的交互,
     */
    public class Quiz {
        private FlashCardReader reader;
        private ArrayList<FlashCard> flashCards;
    
        /**
         * 构造方法
         * @param fileName 要使用的问题和答案的文件名
         */
        public Quiz(String fileName) {
            reader = new FlashCardReader(fileName);
            flashCards = reader.getFlashCards();
        }
    }
    
    
    
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!