
Being able to trace how programs work by drawing memory models is super important! Here we focus on passing a method a reference to an int array and then modifying a value within that array. public class JavaPractice { public static void main(String[] args){ int x = 29; int[] nums = new int [3]; nums[1] = 25; method1(nums); } public static void method1(int[] input){ input[2] = 21; } } Check out the previous video about passing an int to a method https://youtu.be/d9VWDeDtEkA
Java Memory Models: Passing a reference to an array - YouTube |
7 Likes | 7 Dislikes |
165 views views | 2,205 followers |
Education | Upload TimePublished on 22 Jan 2019 |
\u200fyoutube,\u200ffortnite,\u200fgoogle translate,\u200f\u202bgoogle\u202c,\u200fminecraft,\u200fok google,\u200fpubg,\u200fsiri,\u200fجمعة مباركة,\u200fصباح الخير,\u200fطيور الجنة,\u200fسورة البقرة,\u200fقران,\u200fسورة الكهف,\u200ftwitter,\u200finstagram,\u200fدعاء السفر,\u200ffacebook,\u200fشباب البومب,\u200fhttps //ios.snapp.ir
Không có nhận xét nào:
Đăng nhận xét