Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Question [] mQuestionBank = new Question[] {
- new Question (R.string.question_punjab,true),
- new Question (R.string.question_cat, true),
- new Question (R.string.question_wear, false),
- new Question (R.string.question_iPhone, true),
- new Question (R.string.question_shahrukh,false)
- };
- public class Question {
- private int mTextResId;
- private boolean mAnswerTrue;
- public int getTextResId() {
- return mTextResId;
- }
- public void setTextResId(int textResId) {
- mTextResId = textResId;
- }
- public boolean isAnswerTrue() {
- return mAnswerTrue;
- }
- public void setAnswerTrue(boolean answerTrue) {
- mAnswerTrue = answerTrue;
- }
- public Question(int textResiD, boolean AnswerTrue) {
- mTextResId = textResId;
- mAnswerTrue = answerTrue;
- }
- }
- public Question(int textResiD, boolean AnswerTrue) {
- mTextResId = textResId;
- mAnswerTrue = answerTrue;
- }
- public Question(int textResId, boolean answerTrue) {
- mTextResId = textResId;
- mAnswerTrue = answerTrue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement