aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/musichub/main/Main.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/musichub/main/Main.java b/src/musichub/main/Main.java
index f917b01..b72a95b 100644
--- a/src/musichub/main/Main.java
+++ b/src/musichub/main/Main.java
@@ -20,8 +20,10 @@ public class Main {
if (choice.length() == 0) System.exit(0);
- while (choice.charAt(0) != 'q') {
+ while (!choice.equals("")) { //if the user puts nothing, quit the loop/system
switch (choice.charAt(0)) {
+ case 'q': //added the option directly in the switch instead of the loop
+ System.exit(0);
case 'h':
printAvailableCommands();
choice = scan.nextLine();
021-05-21 16:59:53 +0200'>2021-05-21Graddle updated and checksum added.Clyhtsuriva4-41/+59 2021-05-20Update README.mdClyhtsuriva1-0/+8 2021-05-20Changing the version. (3.2.3)Clyhtsuriva1-2/+2 2021-05-20Adding fastlane metadata and update README.mdv3.2.2release/3.2.2Clyhtsuriva7-0/+7 2021-05-20Update README.mdClyhtsuriva1-2/+2 2021-05-19Update README.mdv3.2.1Clyhtsuriva1-1/+1 2021-05-19Update README.mdClyhtsuriva1-3/+3 2021-05-19Update README.mdClyhtsuriva1-1/+1 2021-05-19Update README.mdClyhtsuriva1-8/+10 2021-05-19Update README.mdClyhtsuriva1-1/+2 2021-05-19Update README.mdClyhtsuriva1-8/+7 2021-05-19Update README.mdrelease/3.2.1Clyhtsuriva1-6/+21 2021-05-19Big updaterelease/3.2Clyhtsuriva55-235/+193 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