如何将ASCII代码(0-255)转换为关联字符的字符串? [英] How to convert ASCII code (0-255) to a String of the associated character?
本文介绍了如何将ASCII代码(0-255)转换为关联字符的字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个int int,范围是0-255,我想创建一个String(长度为1),这样这个单个字符的ASCII值就是指定的整数。
I have an int int the range 0-255, and I want to create a String (of length 1) so that the ASCII value of this single character is the specified integer.
在Java中有一种简单的方法吗?
Is there a simple way to do this in Java ?
例如:
65 -> "A"
102 -> "f"
推荐答案
这篇关于如何将ASCII代码(0-255)转换为关联字符的字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文