Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. public class TextQuestionsProverbios {
  2.  
  3. public static String questions[] = {
  4. "A união faz...",
  5. "Devagar se vai...",
  6. "Dizei-me com quem andas e eu te direi..."
  7. "Gato escaldado de água fria... "
  8. "O barato sai..."
  9. "Saco vazio não fica..."
  10. "O perguiçoso trabalha..."
  11. "Apressado..."
  12. "Ninguém é profeta...",
  13. "Quem fala muito, dá bom dia..."
  14. };
  15.  
  16. public static String answers[][] = {
  17. {"a força, "a diferença", "a fome", "o impossível"},
  18. {"de mansinho", "a lado nenhum", "ao longe", "alto"},
  19. {"quem ves","quem levas","quem ouves",quem és"},
  20. {"gosta","tem medo","foge", "toma banho"},
  21. {"torto","do bolso","bom","caro"},
  22. {"de lado","de pé","cheio","pesado"},
  23. {"devagar","deitado","dobrado","à noite"},
  24. {"chega em último","tropeça","vai à frente","come cru"},
  25. {"na sua terra","sem ler","sem trabalhar","no mar"},
  26. {"aos peixinhos","aos vizinhos","a cavalo","aos cães"}
  27.  
  28. };
  29.  
  30. public static int correctAnswer[] = {
  31. 1,
  32. 3,
  33. 4,
  34. 2,
  35. 4,
  36. 2,
  37. 3,
  38. 4,
  39. 1,
  40. 3
  41. };
  42.  
  43.  
  44. public String getQuestion(int a){
  45. return questions[a];
  46. }
  47.  
  48. public String getchoice1(int a){
  49. return answers[a][0];
  50. }
  51.  
  52. public String getchoice2(int a){
  53. return answers[a][1];
  54. }
  55.  
  56. public String getchoice3(int a){
  57. return answers[a][2];
  58. }
  59.  
  60. public String getchoice4(int a){
  61. return answers[a][3];
  62. }
  63.  
  64. public static int getCorrectAnswer(int a){
  65. return correctAnswer[a];
  66. }
  67.  
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement