From d502b46b9e5504193b25d4aa9a1a03d601344e5d Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 22:16:05 +0200 Subject: Fixing lower case issue following acceptance test --- src/main/java/musichub/util/Policy.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/main/java/musichub/util/Policy.java b/src/main/java/musichub/util/Policy.java index 93e7caf..3d041d1 100644 --- a/src/main/java/musichub/util/Policy.java +++ b/src/main/java/musichub/util/Policy.java @@ -1,10 +1,5 @@ package musichub.util; -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.StandardOpenOption; -import java.sql.Timestamp; import java.util.Scanner; /** @@ -111,8 +106,7 @@ public final class Policy { printAgreement(); Scanner scan = new Scanner(System.in); - String choice = scan.nextLine(); - choice = choice.toLowerCase(); + String choice = scan.nextLine().toLowerCase(); while (!choice.equals("y")) { switch (choice.charAt(0)) { @@ -120,11 +114,11 @@ public final class Policy { case 'r' -> { System.out.println(termsAndConditions); printAgreement(); - choice = scan.nextLine(); + choice = scan.nextLine().toLowerCase(); } default -> { printAgreement(); - choice = scan.nextLine(); + choice = scan.nextLine().toLowerCase(); } } } -- cgit v1.2.3 _to_refresh'>feature/swipe_to_refresh Yet another android myanimelist client
summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/xyz/adjutor/aniki/presentation/model/response/AnimeResponse.kt (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-19Big updaterelease/3.2Clyhtsuriva1-1/+1
Restructuring the packages and adding a Constants.kt for the api URL. Also adding gson in Singletons.kt
2021-05-19Update README.mdClyhtsuriva1-1/+5
2021-05-14Update README.mdClyhtsuriva1-1/+3
2021-05-14Update README.mdClyhtsuriva1-0/+23
2021-05-14Update README.md and adding logo onto the main screenrelease/3.1Clyhtsuriva2-10/+13
2021-05-14Singletons on all pages : OKClyhtsuriva6-125/+81
2021-05-14Singletons : DetailTopManga : OKClyhtsuriva2-21/+49
2021-05-14Addedd Singletons for TopManga.Clyhtsuriva3-23/+43