-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
247 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.example.multiplechoice; | ||
|
||
public class Answer { | ||
private static String answer1; | ||
private static String answer2; | ||
private static String answer3; | ||
private static String answer4; | ||
private static String correctAnswer; | ||
|
||
|
||
public Answer(String answer1, String answer2, String answer3, String answer4, String correctAnswer) { | ||
this.answer1 = answer1; | ||
this.answer2 = answer2; | ||
this.answer3 = answer3; | ||
this.answer4 = answer4; | ||
this.correctAnswer = correctAnswer; | ||
} | ||
|
||
public static String getAnswer1() { | ||
return answer1; | ||
} | ||
|
||
public static String getAnswer2() { | ||
return answer2; | ||
} | ||
|
||
public static String getAnswer3() { | ||
return answer3; | ||
} | ||
|
||
public static String getAnswer4() { | ||
return answer4; | ||
} | ||
|
||
public static String getCorrectAnswer() { | ||
return correctAnswer; | ||
} | ||
|
||
|
||
public boolean isNull(String answer4){ | ||
boolean check = false; | ||
if(answer4 == null){ | ||
check = true; | ||
} | ||
return check; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.example.multiplechoice; | ||
|
||
import android.os.CountDownTimer; | ||
|
||
public class Timer extends CountDownTimer { | ||
public Timer(long millisInFuture, long countDownInterval) { | ||
super(millisInFuture, countDownInterval); | ||
} | ||
|
||
@Override | ||
public void onTick(long millisUntilFinished) { | ||
|
||
} | ||
|
||
@Override | ||
public void onFinish() { | ||
|
||
} | ||
} |
Oops, something went wrong.