Day 7 – 8/23/26 – Development and Debugging
Improved survey/user-flow logic
Changed the survey from automatically terminating the program when
the user selects “no.”
Added an option for users to skip the survey and continue to
the Wi-Fi Latency Analyzer.
Added if / else if / else control flow to handle valid
and invalid responses.
Improved input validation
Continued using equalsIgnoreCase() so inputs such as YES, Yes, and yes are treated consistently.
Added handling for invalid responses instead of allowing unexpected
input to break the program.
Identified and corrected an issue where multiple scanner.nextLine() calls were accidentally being
used before the program needed the second input.
Debugging and code cleanup
Identified a major issue where scanner.close() was
accidentally placed inside the age-validation loop.
Recognized that closing the scanner could prevent the rest of
program from receiving user input.
Kept scanner closure at the end of the program instead.
·
Began Day 7 latency extraction
Built on the existing BufferedReader that reads
the operating system’s ping output.
Added detection for lines containing “time=”.
Used indexOf() to locate the position of the
latency information within the ping output.
Began learning how substring() can isolate the latency portion
of the returned text.
Next step of extracting the numerical ms value and converting it
with Double.parseDouble()
Improved program methodology
Continued developing the project incrementally
Practiced debugging by testing individual sections
Key challenge/cool change: The program is becoming more user-friendly and robust. Users can
now decline the optional survey without losing access to the actual
Wi-Fi Latency Analyzer, while the program separately handles survey
consent and analyzer participation.