Practice 7: System in (BufferedReader, InputStreamReader) (Basic Java Programming 28)

Опубликовано: 30 Ноябрь 2020
на канале: Basic Java Programming for Beginners
68
1

【Basic Java Programming 28】
Let's code! I am talking about the "System in" and a "BufferedReader" class in Java.

====================================
[Practice]
Write the program that judges a specific character.

(Explanation)
The equals method of the String class compares between the argument and the variable of the String.
And then, if the argument is the same as the variable, return the "true" of the boolean type.
But if not, return the "false" of the boolean type.

[Specification]
・Display the "true" of the Boolean type if a user inputs "y."
・Display the "false" of the Boolean type if a user inputs "n."
・Display the "Error occurs." message on the prompt if a user inputs the other words.
・Use the readLine method of the BufferedReader class.
・Use the "try-catch" statement.
・The format specifier of the boolean type is "%b." You can decide whether you use it or not.
・Make sure you close the BufferedReader object.
====================================

◆ Format Converters in Java (Basic Java Programming 21)
   • Format Converter in Java (Basic Java Progr...  

◆ Practice 7: System in (BufferedReader, InputStreamReader) - answer
https://note.com/mac_makoto/n/nc01320...

◆ Makoto Official Site
https://sabay-sabay.asia/


На этой странице сайта вы можете посмотреть видео онлайн Practice 7: System in (BufferedReader, InputStreamReader) (Basic Java Programming 28) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Basic Java Programming for Beginners 30 Ноябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 68 раз и оно понравилось 1 зрителям. Приятного просмотра!