摘要:
public class Main { public static void main(String[] args) { double d = 3.1415926; System.out.printf("%.2f\n", d); // 显示两位小数3.14 System.out.printf("%. 阅读全文
posted @ 2021-10-18 17:31
流樱。
阅读(261)
评论(0)
推荐(0)
摘要:
\" 表示字符" \' 表示字符' \\ 表示字符\ \n 表示换行符 \r 表示回车符 \t 表示Tab \u#### 表示一个Unicode编码的字符 String s = "ABC\n\u4e2d\u6587"; // 包含6个字符: A, B, C, 换行符, 中, 文 阅读全文
posted @ 2021-10-18 17:01
流樱。
阅读(454)
评论(0)
推荐(0)
摘要:
整数型: byte short int long 浮点型: float double 字符类型: char 布尔类型: boolean 引用数据类型(字符串): String 阅读全文
posted @ 2021-10-18 16:43
流樱。
阅读(102)
评论(0)
推荐(0)

浙公网安备 33010602011771号