摘要: javadoc命令是用来生成自己的API文档的 参数信息 @author 作者名 @version 版本号 @since 指名需要最早使用的jdk版本 @param 参数名 @return 返回值情况 @throws 异常抛出情况 Exception 阅读全文
posted @ 2022-02-22 21:17 苏三说v 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 为了更好得组织类,java提供了包机制,用于区别类名得命名空间。 包语句的语法格式为: packge pkg1[.pkg2[.pkg3...]]; 一般利用公司域名倒置作为包名; 为了能够使用某一个包的成员,我们需要再JAVA程序中明确导入该包。 完成此功能 import packge1[.pack 阅读全文
posted @ 2022-02-22 20:59 苏三说v 阅读(52) 评论(0) 推荐(0) 编辑
摘要: package operator; public class Demo06 {//位运算 public static void main(String[] args) { /* A = 0011 1100 B = 0000 1101 A & B = 0000 1100 A | B = 0011 11 阅读全文
posted @ 2022-02-22 19:59 苏三说v 阅读(25) 评论(0) 推荐(0) 编辑
摘要: package operator; //逻辑运算符 public class Demo05 { public static void main(String[] args) { //&& 与(and) ||或(or) 非(取反) boolean a = true; boolean b = false 阅读全文
posted @ 2022-02-21 17:12 苏三说v 阅读(156) 评论(0) 推荐(0) 编辑
摘要: package operator; public class Demo04 { public static void main(String[] args) { // ++ -- ,自增 ,自减 一元运算符 //重点执行的时机不同 int a = 3; int b = a++; //执行完这行代码后 阅读全文
posted @ 2022-02-21 16:46 苏三说v 阅读(25) 评论(0) 推荐(0) 编辑
摘要: package operator; public class Demo03 { public static void main(String[] args){ //关系运算符返回的结果: 正确,错误 通过布尔值来表示 true false int a = 10; int b =20; int c = 阅读全文
posted @ 2022-02-21 16:25 苏三说v 阅读(63) 评论(0) 推荐(0) 编辑
摘要: package operator; public class Demo02 { public static void main(String[] args) { long a =123123311231231L; int b =123; short c =10; byte d =8; System. 阅读全文
posted @ 2022-02-21 16:20 苏三说v 阅读(14) 评论(0) 推荐(0) 编辑
摘要: package operator; public class Demo01 { public static void main(String[] args) { //二元运算符 int a =10; int b =20; int c =25; int d =25; System.out.printl 阅读全文
posted @ 2022-02-21 16:19 苏三说v 阅读(21) 评论(0) 推荐(0) 编辑
摘要: package base; public class Demo07 { public static void main(String[] args) { // int a,b,c; // int a=1,b=2,c=3; //程序可读性 String name ="xulei"; char x= ' 阅读全文
posted @ 2022-02-21 16:17 苏三说v 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 算术运算符: +,-,*,/,%(取余数/模运算),++,-- 赋值运算符:=(a=b,把a赋值给b) 关系运算符:>,<,>=,<=,==,!=instanceof (不等于) 逻辑运算符:&&,||,! 位运算符:&,|,^,~ ,>>,<<,>>>(了解!!!) 条件运算符?: 扩展赋值运算符 阅读全文
posted @ 2022-02-21 15:58 苏三说v 阅读(19) 评论(0) 推荐(0) 编辑