The Arrays Class in Java (Part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

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

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

    I loves 🤩 your video the audio is not important but how you teaching is important

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

    Thanks for your lesson, it was helpful for me.

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

    interested👍

  • @fazalhaqfaisal5459
    @fazalhaqfaisal5459 4 หลายเดือนก่อน

    thanks so match your lesson is very clear everyone can understand on it i hop to mack all the lesson so cleare thanks thanks

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

    Amazing video sir

  • @shehrozarshad9857
    @shehrozarshad9857 2 ปีที่แล้ว

    thanks for lesson it was very helpfull for me

  • @Mgg640
    @Mgg640 2 ปีที่แล้ว

    Perfect

  • @SujitKumar-sr5cq
    @SujitKumar-sr5cq 4 ปีที่แล้ว

    Nyc explanation

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

    is there any mistake when u says that there when sort (from index )to (to index)i dont get logic abt it...ow there is index-1 for(from index).....

    • @suswithcherry9252
      @suswithcherry9252 11 หลายเดือนก่อน +1

      there is no mistake, for example Arrays.sort(2, 5) -> in this statement elements at indices 2, 3, 4 will be sorted and 5th index element will not be sorted.
      so, in short -> Arrays.sort(2(index included), 5(index excluded)).

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

    Sir would I know which class we have to import and which class already imported?
    Sir I am really confused about it 😕

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

      import java.util.Arrays ;

    • @matthewsiahaan2505
      @matthewsiahaan2505 4 ปีที่แล้ว

      class Arrays need to import by typing import java,util.Arrays;. but actually intelliJ will tell you whenever you need to import something. It will give red underlined on the class we need to import then you can press alt+enter at the red underlined to import the class you need immediately.

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

      import java.util.*;

    • @gamer-zy1uj
      @gamer-zy1uj 3 ปีที่แล้ว

      @@mostafamarwanmostafa9975 hii

  • @dinhomhm
    @dinhomhm 4 ปีที่แล้ว +4

    int ABC [] = {10,2,35,61,2,4};
    Arrays.sort(ABC);
    !
    I have this code, but the output is empty, what is the reason?

    • @parthpandya2909
      @parthpandya2909 4 ปีที่แล้ว

      Syntax is
      Int[] ABC ={ 1,2,6,6,};

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

      {
      int[] ABC= {10,3,35,61,2,4};
      Arrays.sort(ABC);
      for(int i=0 ; i

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

      @@aditimondal9914 thank you

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

      ​@@parthpandya2909 both are correct. You can write either of the way.

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

      I hope you already got the answer still it's for others who have same question.
      It's obvious, you'll not get anything, as you've not printed it yet. To print an array do like this:
      int [] ABC = {10, 2,35,61,2,4}
      Arrays.sort(ABC);
      System.out.println(Arrays.toString(ABC));
      Now it'll print your array in output

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

    Is there any requirement of importing the array class or not?
    Sir plz reply 😕

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

      class Arrays need to import by typing import java,util.Arrays;. but actually intelliJ will tell you whenever you need to import something. It will give red underlined on the class we need to import then you can press alt+enter at the red underlined to import the class you need immediately.

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

      @@matthewsiahaan2505 thank you 🙏

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

    Can some explain to me why do we add 1 to the insertionIndex if the element is not found?

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

    is it possible to combine all array class in 1 program ?

  • @bhaveshtahiliani5899
    @bhaveshtahiliani5899 4 ปีที่แล้ว

    Sort array containing object using compareTo in next video..!

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

    In a c++ programmer and I'm surprised. You can do this with high level languages without making your own methods!?

  • @khaledalsayeh1231
    @khaledalsayeh1231 2 ปีที่แล้ว

    Are there power point documents for subscribers on the site ?

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

    Is it the ASCII code or the Unicode, cause unicode it sounds like unicorn

  • @ArunKumar-nz8cq
    @ArunKumar-nz8cq 4 ปีที่แล้ว

    Sir.... how enter the values into the array using input from the user

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

      In order to run this code create a file called ArraysEx2.java in your IDE
      Then simply copy and paste this inside
      import java.util.Scanner;
      public class ArraysEx2 {
      //Method
      public static void userEnterValue() {
      //Prompt
      System.out.print("Enter array size as a whole number: ");
      //creating array of user defined size
      Scanner keyboard = new Scanner(System.in);
      int arraySize = keyboard.nextInt();
      int array[] = new int[arraySize];
      //Prompt
      System.out.println("Enter the vaules you want stored in the array");
      //entering values into the array using input from the user
      for(int i = 0; i < array.length; i++) {
      System.out.print("Value " + (i + 1) + ": ");
      array[i] = keyboard.nextInt();
      }
      keyboard.close();
      //displaying the entered values from the user
      for(int num : array) {
      System.out.print(num + " ");
      }
      System.out.println();
      }
      public static void main(String[] args) {
      userEnterValue();
      }
      }

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

      Using for loop.
      for(int i; i>array.length(); i++) {
      int[i] = sc.nextInt();
      }
      to print use Array.toString();

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

    Your classes are really great. But the only problem is when you talk,i feel like you are shouting continuosly. It would be really helpful if you spoke in a calm voice.Thank you.

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

      its just in your head

  • @ancusEIRL
    @ancusEIRL 10 หลายเดือนก่อน

    This gives me so much hope for my kid. Anyways i better enhance myself by looking for help before he turns 4. He is 2 next month and the mother is preventin me to see him just for the sake of hurting me. We are in a law pocess now but it takes time. This should be priority in terms of law processes.

  • @sadagarshil9882
    @sadagarshil9882 4 ปีที่แล้ว

    Sir launch the videos of java8.0 in Hindi