private String[][] questions =
{
{"Sky's color is black", "false"},
{"The earth is round.", "true"},
{"Google is written in PHP", "false"},
{"This program is written in JAVA", "true"},
{"Daniel is white", "true"}
};
public void selectRandomQuestion() {
}
我希望系统从数组中随机选择一个问题,选择后,我想打印它+让系统记住这个问题已经打印了,这样系统就不会再选择那个问题了。
例子:
我收到了“Google 是用 PHP 编写的”的问题,回答了它,现在我无法再收到这个问题了。在我用完问题后,系统会转动boolean game to false
,因此游戏将结束。
我怎样才能做到这一点?