![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随笔
weixin_49340788
愿成长,落落大方,枯木逢春,不负众望。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
展开
-
动态SQL-if,where,set,choose
<select id="getBlog" parameterType="map" resultType="blog"> select * from blog where 1=1 <if test="title !=null"> title=#{title} </if> <if test="author !=null"> and author=#{au原创 2021-10-21 22:51:17 · 77 阅读 · 0 评论 -
java方法及变量的调用
**//方法**class Test2{ public void method2(){ System.out.println("1"); }} class test{ public void method0(){ System.out.println("2"); } public static void method1(){ System.out.println("3"); } public static void main(String args[]){ n原创 2021-09-09 09:37:44 · 1158 阅读 · 0 评论 -
JAVA对象内存分析(引用)
JAVA对象内存分析原创 2021-09-09 09:17:13 · 31 阅读 · 0 评论 -
Scanner类的使用
Scanner scanner=new Scanner(System.in);//输入 while(scanner.hasNextDouble()){ double a= scanner.nextDouble();//接收第一个数字 String b=scanner.next();//接收运算符 double c=scanner.nextDouble();//接收第二个数字 switch (b).原创 2021-09-06 23:28:14 · 38 阅读 · 0 评论 -
java学习随笔
常量的定义必须先赋值再使用final 数据类型 变量名=值double 和float 的使用float的使用必须在值得后面加上F或者f,double可加可不加final double PI=3.1415926D;自增和自减运算++a 先自增再赋值a++ 先赋值再自增b=++a; a=5 b=5b=a++ a=5 b=4按位与:如果两个操作数的精度不同,则运算的结果向高精度的对齐异或操作:两个操作数都为0或者1,则为0 否则为1移位操作:>> :右移<&原创 2021-09-06 16:56:17 · 50 阅读 · 0 评论