#29 Multi Dimensional Array in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 48

  • @ayodhyarode
    @ayodhyarode ปีที่แล้ว +16

    Sir you teach every concept in an Amazing way. It is helping me to understand everything. Thanks a lot sir 🙏😊

  • @Abbydups
    @Abbydups ปีที่แล้ว +19

    You’re such an angel! You helped me so much in understanding my homework.

  • @sarathchandar5047
    @sarathchandar5047 ปีที่แล้ว +16

    Big fan of u Navin sir … fantastic series of java … like u had for python

  • @cramyboba1013
    @cramyboba1013 ปีที่แล้ว +2

    You helped me a lot with my homeworks sir, thank you from Myanmar

  • @MdKamrulIslam-lo9xn
    @MdKamrulIslam-lo9xn 10 หลายเดือนก่อน +3

    creating an object of the Random class could also be done here to do the job:
    Random random = new Random();
    nums[ i ] [ j ] = random.nesxtInt(); // put the upper limit inside the nextInt bracket if you want an upper limit.

  • @yashaswinihm4288
    @yashaswinihm4288 ปีที่แล้ว +11

    Normal for loop is better and clear than enhancled for loop

    • @samantsrivastava8170
      @samantsrivastava8170 11 หลายเดือนก่อน +2

      Yes

    • @SanataniRishu02
      @SanataniRishu02 5 หลายเดือนก่อน

      Nah enhanced for loop is much better you just have to understand that in enhanced for loop : iterates over a element in group

  • @egor_andryushchenko
    @egor_andryushchenko ปีที่แล้ว

    Thank you for this lesson, I have enjoyed it a lot, reminds me of my time in university with C++.

  • @elikmtl
    @elikmtl ปีที่แล้ว

    The best explanation ever! Thank you very much.

  • @VikasMishra-q9w
    @VikasMishra-q9w หลายเดือนก่อน +1

    you should explain what static methods before explaining Math.random function, how a beginner will able to understand this? How you are able to call a function without creating its object

  • @katewolf00
    @katewolf00 ปีที่แล้ว +1

    What program do you use to draw the diagrams for us? I really like it

  • @ffcblacky7569
    @ffcblacky7569 8 วันที่ผ่านมา

    Why useing int m : n in enhanced for loop we already using n : nums so its possible to print n array its give the array of the elements? Do you agree that? Chief

  • @emerald8743
    @emerald8743 7 หลายเดือนก่อน

    @Telusko, The main array is 3 rows and one column right? I see there is only one column for main array which has 3 arrays. The four columns are of internal arrays right?

  • @DarkyBoy-n1i
    @DarkyBoy-n1i 6 หลายเดือนก่อน

    Yes, I do as you said after watching.

  • @GargeyasaikrishnaChava
    @GargeyasaikrishnaChava ปีที่แล้ว +3

    I think this topic is less used in daliy life purposes

  • @aids9918
    @aids9918 5 หลายเดือนก่อน

    Awesome tutorial!

  • @shenbagamr421
    @shenbagamr421 2 ปีที่แล้ว +6

    Nice teaching nallave puriyuthu bro❣️

    • @sindhisajadali610
      @sindhisajadali610 ปีที่แล้ว

      Sir that's best
      Collection of lectures
      Plz share
      Assimignment or H. W
      It's easy way to students understand and do H. W

    • @BLACK888-uk2rm
      @BLACK888-uk2rm 6 วันที่ผ่านมา

      Finally I found tamil comment❤

  • @praveenr7957
    @praveenr7957 ปีที่แล้ว +1

    I run array in vs code it gives something main error. But I run in Eclipse it gives output.

  • @LearnSnowflakewithGoldflake
    @LearnSnowflakewithGoldflake ปีที่แล้ว +1

    broo navin bro thandani thane thane thandane thane thane noo brooo super explanation

  • @manavkaneria
    @manavkaneria ปีที่แล้ว

    What's about if we want to take input from the user?

  • @adityakaushik2845
    @adityakaushik2845 ปีที่แล้ว +5

    Math.random not working in my compiler.why??

    • @nikilkandula8562
      @nikilkandula8562 ปีที่แล้ว +2

      First u have to import it's library

    • @AravStark
      @AravStark ปีที่แล้ว

      You have to import it bro

    • @lohithareddy15
      @lohithareddy15 ปีที่แล้ว +1

      @@nikilkandula8562 how can i import math library in vs codde.....can u please help me

    • @ArjunU931
      @ArjunU931 ปีที่แล้ว +2

      ​​@@lohithareddy15 type this code in the first line ok. " import java.lang.Math; ". 😊

    • @cosmesumagaysay7126
      @cosmesumagaysay7126 9 หลายเดือนก่อน

      ​@@lohithareddy15import java.util.Random;

  • @mrgold8267
    @mrgold8267 ปีที่แล้ว +3

    Why don't we do this: Random rand = new Random();
    import java.util.Random;
    class Main
    {
    public static void main(String[] args)
    {
    Random rand = new Random();
    int[][] arr = new int[5][];
    for(int i = 0; i < arr.length; ++i)
    {
    arr[i] = new int[rand.nextInt(5,10)];
    for (int j = 0; j < arr[i].length; ++j)
    {
    arr[i][j] = rand.nextInt(0,10);
    }
    }
    for(int i = 0; i < arr.length; ++i)
    {
    for (int j = 0; j < arr[i].length; ++j)
    {
    System.out.print(arr[i][j] + " ");
    }
    System.out.println();
    }
    }
    }

  • @LAVAN-2424
    @LAVAN-2424 ปีที่แล้ว

    sir why to take random Values teach and insert user given values.

  • @kvelez
    @kvelez ปีที่แล้ว +2

    import java.util.Arrays;
    public class Main{
    public static void main(String[] args) {
    int[][] nums = new int[3][4];

    for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 4; j++) {
    int random = (int)(Math.random() * 10);//type casting
    nums[i][j] = random;
    System.out.print(random + " ");//row limit
    }
    System.out.println();//line break
    }
    System.out.println();//For each format
    for (int[] num : nums) {
    System.out.println(Arrays.toString(num));
    }
    System.out.println();//For each format
    for (int[] is : nums) {
    for (int is2 : is) {
    System.out.print(is2 + " ");
    }
    System.out.println();
    }
    }
    }

  • @FahadAli-i9x
    @FahadAli-i9x ปีที่แล้ว

    How can we ourself initialize the multidimensional array as we do in 1d array

    • @The_Motobikers_World
      @The_Motobikers_World ปีที่แล้ว

      Just simply assigned the value in row and column format where row represent the no of array and column represent the no of elements in the array .
      Just for example first array 0th element we have to write
      Array[0][0]=some value;
      Like wise that second array third element supposed the array size is of 3
      Then the syntax will be
      Array[1][3]=some value;

    • @The_Motobikers_World
      @The_Motobikers_World ปีที่แล้ว

      Another way
      scanner class should be in a nested loop where outer loop represent the row no(no of array )and inner loop represent the column (no of elements in the array) .
      The syntax will be:-
      Arr[row][column]=sc.nextInt();//before that you should include the scanner class in your code and create an object of that .

  • @YoutubeCom-de9ye
    @YoutubeCom-de9ye ปีที่แล้ว +2

    Sir pls give free coupon code for your Udemy course. It's an amazing course and your explanation it just excellent

  • @nikilkandula8562
    @nikilkandula8562 ปีที่แล้ว

    Sir can we scanner class to intialise variables

    • @The_Motobikers_World
      @The_Motobikers_World ปีที่แล้ว

      Yes, scanner class should be in a nested loop where outer loop represent the row no(no of array )and inner loop represent the column (no of elements in the array) .
      The syntax will be:-
      Arr[row][column]=sc.nextInt();//before that you should include the scanner class in your code and create an object of that .

  • @sindhunayak9354
    @sindhunayak9354 6 หลายเดือนก่อน +1

    Who don't have laptop or desktop
    And practice with mobile

    • @rohitpal73
      @rohitpal73 6 หลายเดือนก่อน

      Lol 😂😂😂😂

    • @kuchbhi7118
      @kuchbhi7118 3 หลายเดือนก่อน

      Well my father will buy me one this diwali.. what about you did you finish java ?

  • @shaikbasha3882
    @shaikbasha3882 ปีที่แล้ว

    if you are here then i would have kissed on your head man, you just clarified all the doubts which was there from ages ..

  • @ДмитрийЕрошин-е8ш
    @ДмитрийЕрошин-е8ш 10 หลายเดือนก่อน

    после активации бота, подскажите, как можно включить текущую сетку? не могу что то найти кнопку

  • @AravStark
    @AravStark ปีที่แล้ว

    I had a doubt, while typing it in the comments, it was solved 🤣🤣🤣

  • @malikmhuzaifa8171
    @malikmhuzaifa8171 2 หลายเดือนก่อน

    kuj smj ni andi