First of all, for convenience in working with the console, we'll implement the ConsoleHelper class. In the future, any work with the console should happen through this class. Add the following to it: 1) A static BufferedReader field initialized using System.in.
Chat (part 2)
You must be signed in to leave a comment
22 March 2021, 23:30
Hint: for the last two conditions, just think how you can continuously execute a loop? I cracked my head for a long time, trying to exactly do what the conditions asked for, but it was very simple thing they were asking for.
17 September 2020, 16:51
FYI: When they say read the input again if there is an error, they mean read it repeatedly.