How do I convert from a char to an int? - Java Coffee Break - your free guide to the world of Java p

How do I convert from a char to an int? - Java Coffee Break - your free guide to the world of Java p

瀏覽:805
日期:2025-06-14
Question How do I convert from a char to an int? Answer If you want to get the ASCII value of a character, or just convert it into an int (say for writing to an OutputStream), you need to cast from a char to an int. What's casting? Casting is when we expl...看更多