摘要:
引用类型参数的传递,调用方的变量,和接收方的参数变量,地址指向的是同一个对象。 双方任意一方对这个对象的修改,都会影响对方 myself:这样也不用像php加&,说变就跟着变,会不会很麻烦,出现一些隐匿的bug ``` public class ImoocStudent { public void 阅读全文
posted @ 2023-05-20 18:19
盘思动
阅读(39)
评论(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
盘思动
阅读(27)
评论(0)
推荐(0)
摘要:
 阅读全文
posted @ 2023-05-20 10:47
盘思动
阅读(61)
评论(0)
推荐(0)