摘要:
public class Demo05 { public static void main(String[] args) { //操作比较大的数的时候,注意溢出问题 //JDK7新特性,数字之间可以用下划线分割 int money = 10_0000_0000; int years = 20; in 阅读全文
posted @ 2021-09-21 19:21
北小柒
阅读(25)
评论(0)
推荐(0)
摘要:
{ public static void main(String[] args) { int i = 128; byte b = (byte) i;//内存溢出无法正常转换 double c = i; //强制转换 (类型)变量名 从高转化为低等级 //自动转换 从低转化为高等级 不需要括号 Sys 阅读全文
posted @ 2021-09-21 17:45
北小柒
阅读(24)
评论(0)
推荐(0)
摘要:
Markdown学习 字体 hello hello hello hello 引用 跳送至www.baidu.com 分割线 图片 超链接 跳转 列表 表格 名字性别生日 代码 阅读全文
posted @ 2021-09-21 17:23
北小柒
阅读(18)
评论(0)
推荐(0)
摘要:
public class Demo03 { public static void main(String[] args) { //整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x int i = 10; int i2 = 010; //八进制0 int i3 = 0x10;//十六进制0 阅读全文
posted @ 2021-09-21 17:22
北小柒
阅读(24)
评论(0)
推荐(0)
摘要:
public class Demlo02 { public static void main(String[] args) { //八大基本数据类型 //整数 int nmu1 = 10; byte num2 = 20; short num3 = 30; long num4 = 30l; //小数: 阅读全文
posted @ 2021-09-21 17:22
北小柒
阅读(26)
评论(0)
推荐(0)
浙公网安备 33010602011771号