摘要:
运算中数字溢出问题 在运算中,可能会出现结果越界的情况,比如: public class OverflowProblem { public static void main(String[] args) { int a = 10_0000_0000; int b = 20; int result = 阅读全文
posted @ 2021-02-18 19:43
cutomorrow
阅读(134)
评论(0)
推荐(0)
摘要:
字符串编码 public class Char_TypeChange { public static void main(String[] args) { char char1 = 'a'; char char2 = '中'; System.out.println(char1); System.ou 阅读全文
posted @ 2021-02-18 18:48
cutomorrow
阅读(88)
评论(0)
推荐(0)
摘要:
JAVA中整数的进制问题 public class BaseSystem { public static void main(String[] args) { //整数进制 //十进制 int num1 = 10; //八进制 int num2 = 010; //八进制用0开头 //十六进制 int 阅读全文
posted @ 2021-02-18 18:35
cutomorrow
阅读(70)
评论(0)
推荐(0)
摘要:
浮点数中的常见问题 public class FloatAndDouble { public static void main(String[] args) { float num1 = 0.1F; double num2 = 1.0/10; System.out.println(num1); Sy 阅读全文
posted @ 2021-02-18 18:34
cutomorrow
阅读(68)
评论(0)
推荐(0)
浙公网安备 33010602011771号