Bug 549 - Need to input twice for input except 'Y' when choosing whether to add attractions
Summary: Need to input twice for input except 'Y' when choosing whether to add attract...
Status: RESOLVED FIXED
Alias: None
Product: New-Territories-Cycle-Track-Navigation-System
Classification: Unclassified
Component: CyclingMode (show other bugs)
Version: 1.0
Hardware: Macintosh Mac OS
: Normal major
Assignee: shijialiu3-c
URL:
Depends on:
Blocks:
 
Reported: 2021-11-07 16:24 HKT by shijialiu3-c
Modified: 2021-11-07 16:26 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shijialiu3-c 2021-11-07 16:24:12 HKT
Steps to reproduce:
1. Enter the cycling mode
2. When being asked whether to add attractions, input anything except 'Y', such as 'N' or 'a'

Actual result:
The software still waited for input and could not respond until the same content was input for the second time

Expected result:
The software proceeds to the next step or reports the invalid input.
Comment 1 shijialiu3-c 2021-11-07 16:26:51 HKT
Solution:
Use a variable to store input.nextLine() to avoid needing to read twice to make a judgement