上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: package Base; import java.util.Scanner; public class Demo6 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scann 阅读全文
posted @ 2025-03-19 23:50 骆驼刺破仙人掌007 阅读(7) 评论(0) 推荐(0)
摘要: package Base; import java.util.Scanner; public class Demon5 { public static void main(String[] args) { //我们可以输入多个数字,并求其总和与平均数,每输入一个数字用回车确认,通过输入非数字来结束输 阅读全文
posted @ 2025-03-19 22:19 骆驼刺破仙人掌007 阅读(8) 评论(0) 推荐(0)
摘要: package Base; import java.util.Scanner;//导入了scanner的包 public class Demon04 { public static void main(String[] args) { // TODO Auto-generated method st 阅读全文
posted @ 2025-03-19 21:59 骆驼刺破仙人掌007 阅读(9) 评论(0) 推荐(0)
摘要: package Base; import java.util.Scanner;//导入了scanner的包 public class Demon04 { public static void main(String[] args) { // TODO Auto-generated method st 阅读全文
posted @ 2025-03-19 21:30 骆驼刺破仙人掌007 阅读(14) 评论(0) 推荐(0)
摘要: 导入包 一般利用公司域名导致作为包名,www.eclipse.com import java.util.base.demon01; import com.kuang.base.;通配符,.""表示可以将包中所有的信息导入 阅读全文
posted @ 2025-03-18 21:52 骆驼刺破仙人掌007 阅读(10) 评论(0) 推荐(0)
摘要: //面试题 int a1=10;int b1=20; System.out.println(" "+a1+b1);//字符串在前,则相连 System.out.println(a1+b1+" ");//字符串在后面,则加减运算 //条件运算符?: int score=90; String type= 阅读全文
posted @ 2025-03-18 20:59 骆驼刺破仙人掌007 阅读(4) 评论(0) 推荐(0)
摘要: //位运算 //a=1100,b=1010,a&b=1000,全1为1,其余为0 //a=1100,b=1010,a|b=1110,全0为0,其余为1 //a=1100,b=1010,a^b=0110,相同为0,不同为1 //a=1100,b=1010,b=0101,a=0011,按位取反 阅读全文
posted @ 2025-03-18 20:37 骆驼刺破仙人掌007 阅读(12) 评论(0) 推荐(0)
摘要: public class Demo2 { public static void main(String[] args) { // TODO Auto-generated method stub //逻辑运算符 boolean a=true; boolean b=false; System.out.p 阅读全文
posted @ 2025-03-18 20:23 骆驼刺破仙人掌007 阅读(14) 评论(0) 推荐(0)
摘要: 1.注释,标识符,关键字 2.数据类型 3.类型转换 4.变量。常量 5.运算符 6.包机制,Javados 阅读全文
posted @ 2025-03-17 21:26 骆驼刺破仙人掌007 阅读(7) 评论(0) 推荐(0)
摘要: package Base; public class Demo01 { public static void main(String[] args) { // TODO Auto-generated method stub int a1=10; int a2=20; int b=a1++;//执行完 阅读全文
posted @ 2025-03-17 17:31 骆驼刺破仙人掌007 阅读(9) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页