【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/
Sur cette page du site, vous pouvez voir la vidéo en ligne Practice 7: System in (BufferedReader, InputStreamReader) (Basic Java Programming 28) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Basic Java Programming for Beginners 30 novembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 68 fois et il a aimé 1 téléspectateurs. Bon visionnage!