Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.myapplication;
- public class QuestionBank {
- public String m_question[] = {"What is the capital of BD?",
- "What is the national fruit of BD?",
- "What is the national flower of BD? "};
- public String m_choices[][] = {{"Khulna", "Barishal", "Dhaka"},
- {"Mango", "Jackfruit", "Banana"}, {"Rose","Water Lily", "Sun Flower"}};
- public String m_correctants[] = {"Dhaka", "Jackfruit", "Water Lily"};
- public String getQuestion(int a){
- String question = m_question[a];
- return question;
- }
- public String getChoice1(int a){
- String Choice1 = m_choices[a][0];
- return Choice1;
- }
- public String getChoice2(int a){
- String Choice2 = m_choices[a][1];
- return Choice2;
- }
- public String getChoice3(int a){
- String Choice3 = m_choices[a][2];
- return Choice3;
- }
- public String getCorrectants(int a){
- String answer = m_correctants[a];
- return answer;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement