mirror of
https://gitlab.com/kauron/jstudy
synced 2024-12-23 00:43:32 +01:00
Config: defaults
This commit is contained in:
parent
51779fb868
commit
c83f765c35
1 changed files with 17 additions and 12 deletions
|
@ -22,6 +22,11 @@ public class AppConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void load() {
|
public static void load() {
|
||||||
|
File file = new File(FILE);
|
||||||
|
if (!file.exists()) {
|
||||||
|
repeatWrong = true;
|
||||||
|
showFeedback = true;
|
||||||
|
} else
|
||||||
try {
|
try {
|
||||||
Scanner in = new Scanner(new File(FILE));
|
Scanner in = new Scanner(new File(FILE));
|
||||||
while (in.hasNextLine()) {
|
while (in.hasNextLine()) {
|
||||||
|
|
Loading…
Reference in a new issue