How to take char based Input with a Java Scanner without a nextChar method

preview_player
Показать описание
How do you take char input from the Scanner class when it doesn't have a nextChar method? Well, you create your own.

It's not hard to have the Scanner take Java char input one character at a time, but you do have to follow a few steps, one of which is changing the delimiter to an empty String.

Then just get the Scanner char input first from a String, and then, use the charAt(0) method. That gives you Scanner input one char at a time.
Рекомендации по теме
Комментарии
Автор

Thank you very much to show this so easily

thomschery
Автор

wow you are really great, thanks for this video

suvrabhattacharjee
visit shbcf.ru