学习笔记
不争无器
这个作者很懒,什么都没留下…
展开
-
JAVA——方法调用,形参改变是否会影响到实参
一、基本数据类型 public static void main(String[] args) { int num=10; change(num); System.out.println("num:"+num); } public static void change(int num){ num=20; } 输出结果: num:10 当change方法创建形参num后,实参num会将自己的值直接传递给形参num原创 2022-03-02 03:37:33 · 1205 阅读 · 0 评论 -
模糊查询like #{name}与like ‘%${value}%‘
like #{name}与like '%${value}%'的区别 select *from user where username like #{name} 由编译器可知这是使用的PrepatedStatement的参数占位符 select *from user where username like ‘%${value}%’ 有图可知该模糊查询使用的是Statement对象的字符串拼接SQL ...原创 2022-02-10 11:52:10 · 1101 阅读 · 0 评论 -
前端知识复习
HTML HTML本质是超文本标记语言,能表现如文字、视频、音频、程序等复杂元素。 1.标签 组成:标签名、属性(对值名)、内容 2.重要标签: 表格标签 < table > <table border="1"> <thead> <tr> <th>表头1</th> ...原创 2020-02-25 21:39:33 · 191 阅读 · 0 评论 -
JAVA_Collection接口
Collection 接口 Collection 接口是集合类的基本接口。它继承了Iterable接口,所以能够实现迭代遍历。 它具备有两个基本方法: boolean add(E e); Iterator iterator(); add add方法用于集合元素的添加,如果元素添加确实改变了集合则返回true,如果集合未发生改变则返回false。列如:如果向集合中添加一个元素,而这个元素在集合中...原创 2019-05-13 22:21:47 · 106 阅读 · 0 评论 -
常用事件及组件
常用事件及支持事件的组件 事件 意义 支持事件的组件 ActionEvent 激活组件 JButton、JList、JTextField、JMenuItem、ComPonent派生类 MouseMotionEvent 鼠标移动 ComPonent及其派生类 MouseEvent 鼠标单击 ComPonent派生类 KeyEvent 键盘输入 ComPonent派生类 ...转载 2019-06-24 19:42:26 · 351 阅读 · 0 评论