aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/musichub/util/Policy.java12
1 files changed, 3 insertions, 9 deletions
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();
}
}
}
htsuriva1-0/+1 2021-06-27Add new feature - display playlistmanthole5-0/+46 2021-06-27mvn packageClyhtsuriva11-6/+142 2021-06-27mvn packageClyhtsuriva26-301/+313 2021-06-27Fixing lower case issue following acceptance testClyhtsuriva1-9/+3 2021-06-27Fixing conflictsmanthole2-0/+139 2021-06-27Latest maven, jacoco and javadoc filesClyhtsuriva47-313/+822 2021-06-27Catch exception related to search functionalitysaid belhadj4-3/+11 2021-06-27Delete TEST-musichub.business.CategoryTest.xmlSaid Belhadj1-58/+0 2021-06-27Add unit test for Category and Languagesaid belhadj4-0/+164 2021-06-27Update search functionalitysaid belhadj2-0/+8 2021-06-27Added an extension check for songs and covered it with a test.Clyhtsuriva65-77/+92 2021-06-27Fix : Javadoc missingClyhtsuriva80-0/+8465 2021-06-27PlayList class covered at 84%.Clyhtsuriva14-78/+117 2021-06-27Song class fully covered.Clyhtsuriva13-49/+96 2021-06-27Starting Song testsClyhtsuriva17-59/+119 2021-06-27Changed the log type for the JUnit test of LogHandlerClyhtsuriva5-26/+4 2021-06-27XMLHandler tests covered at 91%Clyhtsuriva93-7962/+82