摘要: import java.util.Scanner; public class IFeDemo4 { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.println("输入 阅读全文
posted @ 2020-10-29 20:02 阿庞哒哒 阅读(45) 评论(0) 推荐(0)
摘要: package day02; public class DataTypeDemo { public static void main(String[] args) { /* * 常用的数据类型: * 1):整型,只能装整数,-21多亿~21多亿 * 2):double:浮点型,只能装小数,很大很大很 阅读全文
posted @ 2020-10-29 16:36 阿庞哒哒 阅读(49) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class IFELse1 { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.print("输出金额" 阅读全文
posted @ 2020-10-29 15:41 阿庞哒哒 阅读(45) 评论(0) 推荐(0)
摘要: package day03; public class OperDemo { public static void main(String[] args) { /* //1)赋值运算符:= int a = 5; //在a本身 a = a + 1;//取出a的值5,加1后,在赋值给a System.o 阅读全文
posted @ 2020-10-29 15:29 阿庞哒哒 阅读(40) 评论(0) 推荐(0)
摘要: package day04; import java.util.Scanner; public class IFELSE { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.ou 阅读全文
posted @ 2020-10-29 12:33 阿庞哒哒 阅读(13) 评论(0) 推荐(0)