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

Veröffentlicht am: 30 November 2020
auf dem Kanal: 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/


Auf dieser Seite können Sie das Online-Video Practice 7: System in (BufferedReader, InputStreamReader) (Basic Java Programming 28) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Basic Java Programming for Beginners 30 November 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 68 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!