P27 - Arrays (Multi Dimensional) in Java | Core Java | Java Programming |

preview_player
Показать описание
In this video, I have explained about "Arrays (Multi Dimensional) in Java".

Points covered in this video:
❇️ What is an Array? Why do we need an Array?
❇️ Different types of arrays in Java?
❇️ What are two dimensional & jagged arrays?
❇️ Different ways of initializing two-dimensional arrays
❇️ Different ways of initializing jagged arrays
❇️ What are default values of array elements?

🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶

===================================
===================================
Connect me @
===================================
===================================
🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.

#hyrtutorialstelugu #selenium #java #telugu
Java programming by Yadagiri Reddy
Рекомендации по теме
Комментарии
Автор

Hi Bro, i really understood everything from this video crisp and clear even about debugging but i really want you to do one video on "DEBUGGING"🙏🙏. Plz consider it, i know there are lot of other channels that explains it, but ur way of explaining keeps us entertained(like without skipping a second) and engaing😶‍🌫😶‍🌫. So guys, whoever want one video especially on "DEBUGGING" plz like this comment or comment as "YES" 🙏🙏so that he will make one video based on the number of people otherwise he might not consider . So, ur wish guys🙌 and sir even though there are no likes, please consider making a video of "DEBUGGING".🤗🤗

HSC-useb
Автор

I have cleared the assignment without watching your assignments solution video which built lots of confidence. Thank you so much..
//1 . sum of all the elements
public static void main(String[] args) {
int[][] arr = new int[][] { { 1, 8, 4 }, { 9, 7, 2}, {7, 6, 4} };
int sum=0;
for (int i = 0; i < arr.length; i++) {
for (int j = 0; j < arr[i].length; j++) {
sum=sum+arr[i][j];
}
}System.out.println(sum);
}
}
//out Put-48

//2. Add the elements in an array and print it in the console
public static void main(String[] args) {
int[][] arr1 = new int[][] { { 1, 2, 1 }, { 9, 7, 2 }, {7, 6, 4} };
int[][] arr2 = new int[][] { { 2, 6, 8 }, { 0, 1, 3 }, {1, 2, 4} };
int[][] arr3 = new int[3][3];
for (int i = 0; i < arr1.length; i++) {
for (int j = 0; j < arr1[i].length; j++) {
arr3[i][j] = arr1[i][j] + arr2[i][j];
System.out.print(arr3[i][j] + " ");
}
System.out.println();
}
}
}
//out Put-
3 8 9
9 8 5
8 8 8

//3. Create an array with squares of the existing array
int[][] arr1 = new int[][] { { 2, 3, 5 }, { 0, 1, 3 }, {1,2,4}};
int[][] arr2 = new int[3][3];
for (int i = 0; i < arr1.length; i++) {
for (int j = 0; j < arr1[i].length; j++) {
arr2[i][j] = arr1[i][j] * arr1[i][j];
System.out.print(arr2[i][j] + " ");
}
System.out.println();
}
}
//out Put
4 9 25
0 1 9
1 4 16


//4. Interchange the values of an array by transposing the index value



//5. Create an array based on condition and print it in the console
int[][] arr1 = new int[][] { {1, 2, 1}, {9, 7, 2}, {7, 6, 4}};
int[][] arr2 = new int[][] { {1, 6, 1}, {0, 7, 3}, {1, 6, 4}};
int[][] arr3 = new int[3][3];
for (int i = 0; i < arr2.length; i++) {
for (int j = 0; j < arr2[i].length; j++) {
if (arr1[i][j] == arr2[i][j]) {
arr3[i][j] = 1;
} else {
arr3[i][j] = 0;
}
System.out.print(arr3[i][j] + " ");
}
System.out.println();

}
//Out put
1 0 1
0 1 0
0 1 1


//6. Interchange the values of an array by transposing the index value
int[][] arr1 = new int[][] { { 1, 8, 4 }, { 9, 7, 2 }, {7,6,4}};
int[][] arr2 = new int[3][3];
for (int i = 0; i < arr1.length; i++) {
for (int j = 0; j < arr1[i].length; j++) {
arr2[i][j] = arr1[j][i];
System.out.print(arr2[i][j] + " ");
}
System.out.println();
} }

//Input out Put
1 8 4 1 9 7
9 7 2 8 7 6
7 6 4 4 2 4

ChandraSekhar-wqfz
Автор

Awesome explanation and very easy to learn regional language lo superb 👏🏻👏🏻

jagadishreddy
Автор

thank you sir for the detail explanation of arrays. this was the best I never heard

knowhow
Автор

i understood very easily, thanks once again for clear explanation.

kitchensetting
Автор

your assignments are so useful for us to go deep in to the concept😊😊😊😊😊

srinivasronyy
Автор

In-depth explanation, thank you so much.

ganeshv
Автор

Bro you have a excellent teaching skills 👌, the way of your explanation is super.
Iam following your core Java course don't give up, please complete full course of core Java 🙏
We are waiting for your next video

vinaykumarkinnera
Автор

Hurry, This much of detailed Mutli DImensional array explanation is clear bruh

jakeershaik
Автор

sir very excellent explanation. Very helpful for beginners.

ullangisarvothamaraju
Автор

Hi Anna, No words to say about the video it is awesome and easy to understand the full concept. Thanks a lot for the video

reddysree
Автор

Thank you so much for your time and valuable content

Apple-clsj
Автор

Assignments give a good understanding and deep knowledge of coding and logic. Video is handy

KATAKAMANJANIAKANKSHA
Автор

thank you Brother for the detail explanation of arrays. this was the best

NaveenNaveen-zror
Автор

Bro your teaching is very v
Wanderful please continue bro 🙏🙏🙏🙏

naveenkumar
Автор

Thnku soo much sir I never find such clear explanation before ✨

manasareddy
Автор

Thank you brother for your effective information to teach us

naidujuttada
Автор

Chala baga explain chesaru,
Thanks a lot sir

chinnikrishna
Автор

Nyc Explanation Guru Ji Am Purchased Membership Account For You Selenium Classes Thank You So Much Guruji

TELUGU-TECH-LEARNER
Автор

Hello sir, i am trying to do reverse array using jagged array but the same logic doesn't seems to be working..can u let me know if we have any size restrictions for jahged arrays when we perform such actions

LikeMindzz
welcome to shbcf.ru