Java toString() 方法
Java 教程
· 2019-02-08 18:42:39
toString() 方法用于返回一个表示指定 char 值的 String 对象。结果是长度为 1 的字符串,仅由指定的 char 组成。
语法
String toString(char ch)
参数
ch -- 要转换的字符。
返回值
返回指定 char 值的字符串表示形式。
实例
public class Test {
public static void main(String args[]) {
System.out.println(Character.toString('a'));
System.out.println(Character.toString('A'));
}
}
以上程序执行结果为:
a A
点击查看所有 Java 教程 文章: https://codercto.com/courses/l/12.html
The Seasoned Schemer
Daniel P. Friedman、Matthias Felleisen / The MIT Press / 1995-12-21 / USD 38.00
drawings by Duane Bibbyforeword and afterword by Guy L. Steele Jr.The notion that "thinking about computing is one of the most exciting things the human mind can do" sets both The Little Schemer (form......一起来看看 《The Seasoned Schemer》 这本书的介绍吧!