Question:
How can I convert an integer ascii representationof a number to its character equivalent in astring form. For example
A= 72
What procedure will take in int 72 and returnstring “A”
Answer:
The simplest way to accomplish this is totypecast the int to a char and convert thatchar to a String. You have several choiceswhen it comes to converting a char toa string, but perhaps the simplest way toaccomplish what you want is:
int a = 72;Character aChar;String aString;aChar = new Character((char)a);aString = aChar.toString();
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
Related Posts
- Congress debates revival of Affordable Connectivity Program
- How EdTech is Making Higher Education More Accessible Worldwide
- Gartner: 43% of Enterprises Will Have IoT Projects This Year
- Enjoy High-Performance Connectivity to MySQL 8.0 with Updated dotConnect for MySQL
- Apple AirTags hit lowest price on Amazon























