From c61ce2e94a1be121414670f93987abdd29d389c6 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 25 Jun 2021 18:27:54 +0200 Subject: Fixing STZ-0004 issue. --- src/musichub/main/Main.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3 value='feature/keyboard_search_button'>feature/keyboard_search_button Yet another android myanimelist client
aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/navigation (unfollow)
Commit message (Expand)AuthorFilesLines
2021-07-30Update README.mdClyhtsuriva1-3/+6
2021-05-22Changing the gradle wrapperv3.2.4release/3.2.4Clyhtsuriva1-1/+1
2021-05-22Version changedClyhtsuriva1-2/+2
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
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