Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String[][] questionsArray = new String[][]
- {
- {"Is sky blue?", "true"},
- {"Is sky green?", "false"}
- };
- private String answer = "";
- private String Currentanswer = "";
- private String question = "";
- private int level = 0;
- private boolean returnValue = false;
- public String getQuestion(int Level) {
- switch (Level) {
- case 1:
- question = questionsArray[0][0];
- break;
- case 2:
- question = questionsArray[1][0];
- break;
- }
- return question;
- }
- public String getAnswer(int Level) {
- switch (Level) {
- case 1:
- answer = questionsArray[0][1];
- break;
- case 2:
- answer = questionsArray[1][1];
- break;
- }
- return answer;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement