摘要:
public class Demo08 { public static void main(String[] args) { /*制作一个简易的计算器 思路:定义加减乘除 添加循环 完善程序 */ Scanner scanner = new Scanner(System.in); while (tr 阅读全文
摘要:
类型转换 低 >高 byte,short,char >int >long >float >double(浮点数优先级) public class Demo05 { public static void main(String[] args) { int i =128; byte b = (byte) 阅读全文
摘要:
public class Demo03 { public static void main(String[] args) { //整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x int i = 10; int i2 = 010;//八进制0 int i3 = 0x10;//十六进制0x 阅读全文