7 Must Know Java Array Methods

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

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

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

    ☕Want to master Java? Get my complete Java course: bit.ly/42mQlXE

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

    Perfect timing! Just started learning about arrays in comp sci 2! Appreciate these comprehensive, compact videos, they make catching up after skipping a class or 2 quick and easy 👍

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

    When you started with the asList method I immediately gave you the like.

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

    "And yes I was hungry when I wrote this out" 🤣

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

    in equals example, introducing it, you show why not use '==' which is comparator and describe it as checking if two arrays point to same set of data. And that 'equals' method checks if contents of the array are the same. I guess I am still confused what is the difference between pointing to same data vs. containing same data? Wouldn't both be true or both be false. If you can give me an example where one give you true and the other false, I would better understand. Thank you.

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

      Arrays are reference type variables that means they dont store values, they store the directions in memory pointing at the values. So doing arr1 == arr2 is checking if their directions in memory are the same. Using .equals method means you are comparing the content of each array and not their direction so you get true in this case

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

    I love your contents and appreciate your effort to elaborate subjects in understandable way.

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

    Thank you man. the copyOf() method was helpful.

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

    I think you should explain in greater detail as how you explain diff Array methods seems to be based on the assumption that we have used these before, which might not be the case. For instance, you omit to explain why we use asList. You simply show us how it is used, leaving me quite perplexed about what exactly asList is and what we use it for.

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

    Nice job Sir, Nice explanations about heart of programming in general. See u 👋 in the next life إن شا ء الله.

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

    Do all these methods work for 2D arrays?

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

    Do you think, you could make a tutorial on serialization? Thanks

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

    Yet again another amazing vid, thanks!

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

    8:12 java being java

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

    Thank you bro!

  • @AliG-se4ph
    @AliG-se4ph 2 ปีที่แล้ว +1

    1:52 Can you add an element? I think after passing the array to the list you can't add an element, could you check that out again please? i mean somehow it lets you to add but cant return it...

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

      Yes but the object type needs to change: List list = new Arraylist(arrays.aslist(Array));

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

    When using the list u can just print it instead of looping on

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

    Excellent tutorial

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

    my java couldn't find compare after Arrays. What can I do?

  • @RandomUser-ob5bt
    @RandomUser-ob5bt 9 หลายเดือนก่อน

    is this array list ? or just normal arrays

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

    Thank you for informations

  • @rameshkumar-zk3or
    @rameshkumar-zk3or ปีที่แล้ว

    very Informative

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

    Useful Video 👍🙂 Java Devs!

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

    why is this only on 900+ likes?

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

    Honestly I learned like all of these by doing leetcode

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

    Ok discord link is dead. help

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

    help me i want to learn java
    every year i start from zero until multithreading then i stop

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

    I'm 17 and I'm a newbie wanting to learn how to code any tips

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

      Just do it

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

    If you are not making money while sleeping, then you are working for others till end of your life ! Warren Buffett !
    an awesome channel and Subbed ! a fellow creator++++

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

    Good explanation, but I still don't understand it after watching it several times.

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

    time to smurf on my apcs classmates

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

    The best way to learn is to teach.

  • @22temara
    @22temara 2 ปีที่แล้ว

    Hello my dear. 👍👍🌷🙋‍♀️🌷🙋‍♀️🌷

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

    Ppipo

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

    Second

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

    first

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

    You didn't mention System.arrayCopy.