This method returns not the data content read by READ (), but the number of bytes read. Note that the READ () return type is different in each class in the IO package!
System.in is an InputStream, which means that it is performed in bytes. When the method read () is called, of course, it is read byte by byte, naturally it is char