Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. private Question [] mQuestionBank = new Question[] {
  2. new Question (R.string.question_punjab,true),
  3. new Question (R.string.question_cat, true),
  4. new Question (R.string.question_wear, false),
  5. new Question (R.string.question_iPhone, true),
  6. new Question (R.string.question_shahrukh,false)
  7. };
  8.  
  9. public class Question {
  10. private int mTextResId;
  11. private boolean mAnswerTrue;
  12.  
  13. public int getTextResId() {
  14. return mTextResId;
  15. }
  16.  
  17. public void setTextResId(int textResId) {
  18. mTextResId = textResId;
  19. }
  20.  
  21. public boolean isAnswerTrue() {
  22. return mAnswerTrue;
  23. }
  24.  
  25. public void setAnswerTrue(boolean answerTrue) {
  26. mAnswerTrue = answerTrue;
  27. }
  28.  
  29. public Question(int textResiD, boolean AnswerTrue) {
  30.  
  31. mTextResId = textResId;
  32. mAnswerTrue = answerTrue;
  33. }
  34. }
  35.  
  36. public Question(int textResiD, boolean AnswerTrue) {
  37.  
  38. mTextResId = textResId;
  39. mAnswerTrue = answerTrue;
  40. }
  41.  
  42. public Question(int textResId, boolean answerTrue) {
  43.  
  44. mTextResId = textResId;
  45. mAnswerTrue = answerTrue;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement