![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java初学
酒罢方醒
向上啊,混蛋
展开
-
日常小错
错误1 ,一下尽管参数看似相同,但实际上是完全不同的函数,注意!当得不到结果的时候不妨看看 public Student queryUser(Long id); public Student queryUser(long id);原创 2017-02-07 15:29:33 · 373 阅读 · 0 评论 -
疑问
1 interface SelfBoundSetter>{ void set(T arg); } interface Setter extends SelfBoundSetter{// 为何不能换成 } public class SelfBoundingAndCovariantArguments {void testA(Setter s1 ,Setter s2 ,SelfBoundSe原创 2017-10-10 22:09:06 · 140 阅读 · 0 评论 -
ArrayList的数据删除
在开发的过程中发现ArrayList移除不了一个数据:直接说原因 删除目标的实体未实现equals方法。 正如如下代码: public class TestRemove { public static void main(String[] args) { Person person = new Person("li"); Person person2 = new Pers原创 2017-11-02 17:01:12 · 351 阅读 · 0 评论 -
java基础知识(读书笔记,练习题笔记)
1 java中方法的参数传递是值传递(基本数据类型),对于自定义对象是引用传递。2 作用域:public class iotest { public static void main(String[] args) { int a =0; { int a=3;//非法 } } } 3变量初始化public static void main(String[] args) { ...原创 2017-07-26 10:39:33 · 545 阅读 · 0 评论