7 Must Know Java Array Methods

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 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.

  • @AliG-se4ph
    @AliG-se4ph 2 роки тому +2

    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 роки тому +2

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

  • @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

  • @mozd1729
    @mozd1729 2 роки тому +1

    Do all these methods work for 2D arrays?

  • @josephthecreator
    @josephthecreator 2 роки тому

    Yet again another amazing vid, thanks!

  • @kodysmith1397
    @kodysmith1397 2 роки тому +1

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

  • @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.

  • @barbe7818
    @barbe7818 2 роки тому +2

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

  • @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.

  • @sardorbekabdupattaev4338
    @sardorbekabdupattaev4338 2 роки тому +1

    Thank you bro!

  • @ramsesmedina1499
    @ramsesmedina1499 2 роки тому +1

    8:12 java being java

  • @RandomUser-ob5bt
    @RandomUser-ob5bt 10 місяців тому

    is this array list ? or just normal arrays

  • @romeemperor
    @romeemperor 2 роки тому

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

  • @Juzzyjuzzy
    @Juzzyjuzzy 2 роки тому

    Excellent tutorial

  • @vask5500
    @vask5500 2 роки тому

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

  • @dragomirpetrov5138
    @dragomirpetrov5138 Рік тому +1

    why is this only on 900+ likes?

  • @Teheren64
    @Teheren64 2 роки тому

    Thank you for informations

  • @mohammadit33
    @mohammadit33 2 роки тому

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

  • @LOVETOWATCHNEW
    @LOVETOWATCHNEW 2 роки тому

    Useful Video 👍🙂 Java Devs!

  • @rameshkumar-zk3or
    @rameshkumar-zk3or Рік тому

    very Informative

  • @mfauch4444
    @mfauch4444 2 роки тому

    Honestly I learned like all of these by doing leetcode

  • @shadowless6086
    @shadowless6086 2 роки тому

    Ok discord link is dead. help

  • @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

  • @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.

  • @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++++

  • @22temara
    @22temara 2 роки тому

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

  • @marynatalia5035
    @marynatalia5035 Рік тому

    Ppipo

  • @midz6326
    @midz6326 2 роки тому

    first

  • @sudhirkumarsingh2035
    @sudhirkumarsingh2035 2 роки тому

    Second

  • @slr150
    @slr150 2 роки тому

    You didn't mention System.arrayCopy.