摘要: 引用类型参数的传递,调用方的变量,和接收方的参数变量,地址指向的是同一个对象。 双方任意一方对这个对象的修改,都会影响对方 myself:这样也不用像php加&,说变就跟着变,会不会很麻烦,出现一些隐匿的bug ``` public class ImoocStudent { public void 阅读全文
posted @ 2023-05-20 18:19 盘思动 阅读(28) 评论(0) 推荐(0) 编辑
摘要: ``` public class ImoocStudent { public boolean contains(int[] arr,int element){ boolean result = false; for(int value : arr){ if(value == element){ re 阅读全文
posted @ 2023-05-20 11:02 盘思动 阅读(5) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/1202393/202305/1202393-20230520104705942-382630314.png) 阅读全文
posted @ 2023-05-20 10:47 盘思动 阅读(48) 评论(0) 推荐(0) 编辑