У нас вы можете посмотреть бесплатно #30 jagged and 3D Array in Java или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Check out our courses: Java Spring Boot AI Live Course: https://go.telusko.com/JavaSpringBootAI Coupon: TELUSKO20 (20% Discount) AI Powered DevOps with AWS - Live Course :- https://go.telusko.com/AIDevOps-AWS Coupon: TELUSKO20 (20% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Udemy Courses: Spring: https://go.telusko.com/udemyteluskosp... Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopy... Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodo... Instagram : / navinreddyofficial Linkedin : / navinreddy20 TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : / discord In this lecture we are discussing: 1)What if array of array of different size ? 2)Jagged array concept 3)If i donot know column size of array 4)traverse the array using for loop and enhance loop #1 Suppose we want to create a 2d dimensional array such that it has 5 rows but we donot know for each row we need different size for column. for that we go for array of array of different size ------------- | 1 | 2 | 3 | --------------------- | 4 | 5 | 6 | 7 | 8 | ------------------------- | 1 | 5 | 9 | 2 | 4 | 7 | ------------------------- in above diagram we have three rows and first row has 3 elements second row has 5 elements and third row has 6 elements. #2#3 jagged array concept come in java 8 -- Jagged array is a multidimensional array where member arrays are of different size. For example, we can create a 2D array where first array is of 3 elements, and is of 4 elements. Following is the example demonstrating the concept of jagged array. syntax to create -- int nums[][]=new int[3][]; nums[0] =new int[3]; nums[1] =new int[5]; nums[2] =new int[6]; initalize value in array using random()method present in Math class for(int i=0;i nums.length;i++){ for(int j=0;j nums[i].length;j++){ nums[i][j]=(int)(Math.random()*10); } } #5 Traverse using for loop : for(int i=0;i nums.length;i++){ for(int j=0;j nums[i].length;j++){ System.out.print(nums[i][j]+" "); } } Traverse using enhanced for loop: for(int x[]:nums){ for(int y:x){ System.out.println(y); } } Note: Just like 2-d jagged array we can create 3-d , 4-d jagged array for cursoity: int num[][][]=new int[3][][]; num[0]=new int[2][]; num[1]=new int[3][]; num[2]=new int[4][]; num[0][0]=new int[2]; num[0][1]=new int[3]; num[1][0]=new int[4]; num[1][1]=new int[5]; num[1][2]=new int[6]; num[2][0]=new int[7]; num[2][1]=new int[8]; num[2][2]=new int[9]; num[2][3]=new int[10]; Intialize the array: for(int i=0;i num.length;i++){ for(int j=0;j num[i].length;j++){ for(int k=0;k num[i][j].length;k++){ num[i][j][k]=(int)(Math.random()*10); } } } Traverse the element of array: for(int i=0;i num.length;i++){ for(int j=0;j num[i].length;j++){ for(int k=0;k num[i][j].length;k++){ System.out.print(num[i][j][k]+" "); } } } Github repo : https://github.com/navinreddy20/Javac... More Learning : Java :- https://bit.ly/3x6rr0N Python :- https://bit.ly/3GRc7JX Django :- https://bit.ly/3MmoJK6 JavaScript :- https://bit.ly/3tiAlHo Node JS :- https://bit.ly/3GT4liq Rest Api :-https://bit.ly/3MjhZwt Servlet :- https://bit.ly/3Q7eA7k Spring Framework :- https://bit.ly/3xi7buh Design Patterns in Java :- https://bit.ly/3MocXiq Docker :- https://bit.ly/3xjWzLA Blockchain Tutorial :- https://bit.ly/3NSbOkc Corda Tutorial:- https://bit.ly/3thbUKa Hyperledger Fabric :- https://bit.ly/38RZCRB NoSQL Tutorial :- https://bit.ly/3aJpRuc Mysql Tutorial :- https://bit.ly/3thpr4L Data Structures using Java :- https://bit.ly/3MuJa7S Git Tutorial :- https://bit.ly/3NXyCPu Donation: PayPal Id : navinreddy20 https://www.telusko.com