How to take char based Input with Java Scanner

Read single characters from the console using Java Scanner next or nextLine and charAt with simple validation and practical tips