Array of Objects Java Tutorial #73

  Рет қаралды 156,158

Alex Lee

Alex Lee

Күн бұрын

$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
In this array of objects java tutorial, I show you that putting objects into an array is just like any other variable type into an array! We just put the names of each object into the array.
Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
Free Tips: bit.ly/3U6HXcb
Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
I hope you enjoyed this array of objects java tutorial!
~
Alex Lee

Пікірлер: 119
@alexlorenlee
@alexlorenlee 7 ай бұрын
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@Mohanadxd
@Mohanadxd 3 жыл бұрын
5 minutes here = 5 weeks in college God bless you alex !!
@vanamutt43
@vanamutt43 2 жыл бұрын
this guy is basically an angel sent down from programming heaven by the ancient gods to guide amateurs towards becoming a programmer.
@asarim-de-ro
@asarim-de-ro 3 жыл бұрын
I remember when I was so confused with that when I started out. Awesome that you help others! keep it going :)
@ashwinnathan4624
@ashwinnathan4624 3 жыл бұрын
I found this channel because my compsci teacher showed a couple of your videos in class. I started exploring your other videos and I watched the one you did about direction in life. I’m so glad I discovered such a kind and thoughtful person. Wish you the best in life bro.
@jvst_joy3174
@jvst_joy3174 3 жыл бұрын
You explained it way more clearly and quicker than my prof. did, and I finally get it! Thanks a lot! :D
@natelilla5891
@natelilla5891 3 жыл бұрын
Congrats on your very first house! Hope you love it :)
@AMANSINGH-yv4vv
@AMANSINGH-yv4vv 3 жыл бұрын
Just completed java basics 1 and 2 . From tomorrow will start the intermediate and then programs for practice . Till now it has been an amazing experience - Thank you Alex . Love from India.
@pranavkurkure6091
@pranavkurkure6091 3 жыл бұрын
Thanks Alex! Got my first job! u r a great teacher man. Keep it up!
@harshasuresh4062
@harshasuresh4062 Жыл бұрын
Another playlist watched, many more concepts understood! You are an absolute lifesaver Alex!! Thank you ❤️
@jonathanjimenez7770
@jonathanjimenez7770 11 ай бұрын
I just got a new job after grad and I am very excited and nervous at the same time. After watching your basics java 1 + 2 I now feel more confident then I have been in the 6 years in school. Thanks for the great videos!
@user-bp4tz8oj8y
@user-bp4tz8oj8y 4 ай бұрын
thanks for the great tutorial. I am currently reviewing for my midterm and these tutorials have been a huge help. Again, thank you so much!
@abraarz2971
@abraarz2971 2 жыл бұрын
Thank you Alex! Finished the playlist, it was great.
@hkchingu1281
@hkchingu1281 3 жыл бұрын
you explain so well thank you::
@javaxx5349
@javaxx5349 3 жыл бұрын
I wanted this previously 😭😭😭 been watching your videos from the beginning of this year Thanks a lot will practice
@datguybrooo7228
@datguybrooo7228 2 жыл бұрын
You're a great teacher mate. Thanks for the tutorials.
@diegoss3d
@diegoss3d 3 жыл бұрын
Oh man, you're a life-saver, I was actually looking for this example.
@LifeJunkieRaj
@LifeJunkieRaj 2 жыл бұрын
Dude, I don't know what I would have done without you or these tutorials. Thank you so much bro! I really appreciate your hard work and simple explanations!
@imaraccoonmute
@imaraccoonmute 3 жыл бұрын
You are the only reason I'm passing, thank you
@pranker199171
@pranker199171 3 жыл бұрын
Hey Alex thanks for the tutorial but I missed when you used to put the source code in the description it really helps me go through each step so that I can impiment what I learned into other programs. Thanks again for such a great tutorial
@breannac9284
@breannac9284 3 жыл бұрын
This man makes it so easy to understand 🙏🏾
@adamhansen2121
@adamhansen2121 3 жыл бұрын
I am new to programming. This helps. Thank you
@jeevinkaur7958
@jeevinkaur7958 3 жыл бұрын
Thank you so much for continuing to make these videos! My CS teacher goes way over my head, and you are able to break it down in a way I can understand and apply to my work.
@liew0328
@liew0328 3 жыл бұрын
Hey Alex, I really like your tutorial videos because you explain very clear and easy to understand. Recently, I'm struggling of develop a Courier Service System. If you could make a tutorial video, it would very helpful. Thank you and hope you get 200k subscribers soon 😄
@premsinghrathore9691
@premsinghrathore9691 Жыл бұрын
Wow! That was so layman!! I've subscribed!
@jesikaavonia4028
@jesikaavonia4028 2 жыл бұрын
Oh wow, I actually understand, thank you Alex!
@mananthakkar6493
@mananthakkar6493 2 жыл бұрын
Hey bro thank you so much to make us understand in easy way thanks from India👍
@slonbeskonechen8310
@slonbeskonechen8310 3 жыл бұрын
Waiting for your new video eagerly, please don't stop!
@victoriacash7616
@victoriacash7616 3 жыл бұрын
Could you do a video on Sorting in Java? I am having trouble understanding it for class and could not find one that you had previously done. Your videos have helped me so much with my classes so far! Thank you!
@zalem7246
@zalem7246 2 жыл бұрын
I glad you to have this video, because I don't got understand this lesson
@ENTERTAINMENT-it4pv
@ENTERTAINMENT-it4pv 3 жыл бұрын
Alex Lee, can you plz make a tutorial on java game development because all the videos I have seen are not good...... plz make a java game tutorial series. Great video anyways Keep up the good work! Thank you
@vikasitian
@vikasitian 3 жыл бұрын
YES!!! it would really be a fun experience!
@mrmario7592
@mrmario7592 3 жыл бұрын
thanksss alex for such great videos
@jetty7614
@jetty7614 3 жыл бұрын
The best CS youtuber!
@goatmealcrisp
@goatmealcrisp 2 жыл бұрын
Alex thank you for your tutorials!! I'm curious have you ever tried using Intellij IDE?
@win4562
@win4562 3 жыл бұрын
Thanks for the great videos
@nikhielsingh748
@nikhielsingh748 3 жыл бұрын
Great video bro
@nandux586
@nandux586 3 жыл бұрын
Hello Alex! Could you do a video on composition/aggregation/inheritance please?
@onlyshorts6837
@onlyshorts6837 2 жыл бұрын
great work can we make a it like the user input the objects like a int array ??
@my_name_is9374
@my_name_is9374 3 жыл бұрын
так просто, что даже новичку понятно, спасибо!
@greynade
@greynade 3 жыл бұрын
Omg What's that keyboard? Sounds satisfying.❤️
@Wuirox
@Wuirox 3 жыл бұрын
same I need to know that, the one that I have sound like a toy
@M1L7D
@M1L7D 3 жыл бұрын
I am a beginner and have been looking for tutorials. Yours is the clearest so far. Could you please do the rock paper scissors? I kinda start to feel JAVA is not for me!
@user-vl9km6ot1h
@user-vl9km6ot1h Жыл бұрын
cool! thanks 👍
@namanjha6561
@namanjha6561 2 жыл бұрын
Thanks
@mariofiorini8665
@mariofiorini8665 3 жыл бұрын
Thanks for this video :)
@javieralva4228
@javieralva4228 Ай бұрын
Hello Alex, I have just started to watch your videos, I also skimmed ahead to see if the pace and quality stayed throughout. So far I like it. If it is OK, I would like to put a link directing people on my FB page back to your videos page if they are also interested in Java. If not PLEASE let me know. I will do this in about 1 week from now. Thank you.
@shse1088
@shse1088 3 жыл бұрын
thank you
@miniman251
@miniman251 3 жыл бұрын
You should make JavaFX video, or Java Scene builder, tic tac toe with javaFX or gui
@gaycat599
@gaycat599 3 жыл бұрын
Very cool!
@RedOneM
@RedOneM 3 жыл бұрын
Thanks, even my monkey brain can understand this. I'm definetly going to binge all your tutorials a few times!
@sajadulislamdipu1954
@sajadulislamdipu1954 3 жыл бұрын
Please sir finish this series as soon as possible.
@paxtonpax2567
@paxtonpax2567 3 жыл бұрын
Hello, your examples helps me a lot to understand java, however there is something i don't know of. What method should i use to check wheather two files is located in the same folder?
@isuruthiwanka9448
@isuruthiwanka9448 3 жыл бұрын
thanks
@SajbabS1
@SajbabS1 3 жыл бұрын
Thanks for the great Job a d Congrats on your house
@sreeharik7005
@sreeharik7005 3 жыл бұрын
Can you please do a series on DS & Algorithms
@sayanchakravarty3596
@sayanchakravarty3596 3 жыл бұрын
Do u have tutorials on Spring framework?
@Nanahisme
@Nanahisme 3 жыл бұрын
Heyy great explanation... but can you plss make a video on how to add binary numbers in java
@aidanl3105
@aidanl3105 2 жыл бұрын
i’m taking java 2 never seen that way of declaring classes before, in terms of having the public static void main inside of main class and then saying public static void in the monkey class instead of on the same line you declared the monkey class on. i’ll have to ask my professor about this.
@piotrt2838
@piotrt2838 3 жыл бұрын
Hi Alex, I've started my journey with Java, but there is topic which is not solved for me. How to write proper unit tests for example for void methods, or when we need to write Unit test... Can you show examples in upcoming videos - How to use JUnit or EasyMock, what is what and when use it?
@MaxxD17
@MaxxD17 2 жыл бұрын
is there a way to make a module that creates x amount of objects and names them for you?
@aryang1232
@aryang1232 3 жыл бұрын
nice
@alexcaesar5377
@alexcaesar5377 3 жыл бұрын
is it possible to access and change private instance of class via getter without setter?
@barsozdizdar7539
@barsozdizdar7539 3 жыл бұрын
Which keyboard do you use?
@NaveenKumarErroju
@NaveenKumarErroju 2 жыл бұрын
Whats your keyboard? I'm trying so hard from 1 month to find out!
@praneetw
@praneetw 3 жыл бұрын
Hey i m following the playlists so mentioned this is basic or intermediate
@rehaanjulka5578
@rehaanjulka5578 3 жыл бұрын
can u please tell what plugins should i install on my netbeans ide 8.2 for easy programming
@michaeljacobdelossantos
@michaeljacobdelossantos 3 жыл бұрын
2:49 Could you teach me how to do that Array, @Alex Lee?
@primarytrend7915
@primarytrend7915 3 жыл бұрын
Nice video, thanks lot. I got question, why do you string type="spider monkey" and you never use it? Thanks for your time
@shanesreal
@shanesreal 3 жыл бұрын
for (Monkey m : monkeys) { System.out.println(m.type); }
@primarytrend7915
@primarytrend7915 3 жыл бұрын
@@shanesreal oh, ok thanks lots
@LifelessNerd
@LifelessNerd 3 жыл бұрын
Nice explanation. Only thing I was missing is why would I use this? Some real world examples would be nice.
@technofreak39
@technofreak39 3 жыл бұрын
Overview of data and a better abstraction of the real world. For example a school is made out of rooms, teachers and studends. Rooms, Teachers and Studends could be arrays. int i = 0; for(Studends s : studentlist){ if s.name = Thomas { i++ } } Sys.out(i); Result: See how many students you have with the first name "Thomas"
@its_Russel
@its_Russel 3 жыл бұрын
Can you do a Simple Inventory java program with jframe😁 i just want to learn thank you
@ushadevisoni7792
@ushadevisoni7792 3 жыл бұрын
From notification squad
@intelligentprogrammer729
@intelligentprogrammer729 3 жыл бұрын
please Bro Make a video on Arraylists
@ahmetkarakartal9563
@ahmetkarakartal9563 3 жыл бұрын
I love you from Turkey
@briddg2642
@briddg2642 3 жыл бұрын
In this video you put a class and in a video I watched from yours about two years ago you didn't have a class. I am just wondering is it necessary or when do you need to put a class?
@STEFAN9484
@STEFAN9484 3 жыл бұрын
Do you use java 8 or 11 in your tutorials ? I use java 11
@virajabukka7449
@virajabukka7449 3 жыл бұрын
I which software Di you run pyothen
@bingusxz
@bingusxz 3 жыл бұрын
How do you clear or empy one of the array within the object?
@learntolead6250
@learntolead6250 3 жыл бұрын
Hi bro... Am arun from india .. Am 2nd year cs clg student i have a doubt in debug a progrm in eclipse... I set the brak point i try run in debug mode.. I will run. But, i dont know how check that " how the values are work ".. If you make the vedio about eclipse debugging it very usefull for us.!!! Thank you bro..
@samuelkim9177
@samuelkim9177 3 жыл бұрын
How do you make your own exception?
@kvelez
@kvelez 8 ай бұрын
Cool
@technofreak39
@technofreak39 3 жыл бұрын
Very nicely explained! But wouldnt it be better for the sake of simplicity to use an ArrayList? That way you wouldnt need to add every monkey manually to the array (If I remember correctly)
@hushinterlocutor7021
@hushinterlocutor7021 3 жыл бұрын
Won't you need to add every monkey to an ArrayList instead?
@technofreak39
@technofreak39 3 жыл бұрын
@@hushinterlocutor7021 No, that can be automated in the monkey class
@hushinterlocutor7021
@hushinterlocutor7021 3 жыл бұрын
​@@technofreak39 err... Like how? Sorry, I just don't get the idea.
@ariton2990
@ariton2990 3 жыл бұрын
One way is you could create a static ArrayList of monkeys in the monkey class and then in the Monkey constructor you do arrayList.add(this); so everytime a new Monkey is created, it automatically gets added to that arrayList and then when you want to access this arrayList you could just do Monkey.arrayList. But I find this more complicated and I dont even think its a good idea to use it like this.
@user-px5pj7ux5k
@user-px5pj7ux5k 9 ай бұрын
Hi sir, how to draw the array of objects example the array of points in java. please help me❤
@anuragagarwal3551
@anuragagarwal3551 3 жыл бұрын
Thank you so much for this! Do you have a course for APCS A by any chance? Also what editing software do you use?
@kapjoteh
@kapjoteh 3 жыл бұрын
APCSA is too ez don’t worry abt it
@ritvikkarra1916
@ritvikkarra1916 3 жыл бұрын
Looks like he's using Eclipse
@anuragagarwal3551
@anuragagarwal3551 3 жыл бұрын
@@ritvikkarra1916 No I mean like video editing software lol. I wanna get into editing too. No idea where to start tho.
@aakashyadav8327
@aakashyadav8327 3 жыл бұрын
Spider monkey from Ben 10 alien force😂
@DivinityinLove
@DivinityinLove 2 жыл бұрын
What I don't understand about objects and arrays is why do we need the obj[] THEN the name of the array? So it starts off obj[] myobjectarray/// or Monkey [] monkeys, why do we need the FIRST Monkey[]? What does that represent?
@darragh36
@darragh36 7 ай бұрын
It represents the data type of the variable. Java is a statically typed language, which means you first need to explicitly specify the data type of a variable when declaring it (this is done so that the variable types are known at compile time rather than runtime). In this case, the type of the variable "monkeys" is an array containing Monkey objects, which is denoted by the typing the type of the objects (Monkey), followed by an opening and closing square bracket. Alternatively, you can type the brackets after the variable name, so it would be: "Monkey monkeys[] = {m1, m2, m3}"
@charlitolauronlapuz3879
@charlitolauronlapuz3879 3 жыл бұрын
Sir how to use string length in java?? please
@peterleitner2383
@peterleitner2383 3 жыл бұрын
why is Monkey a Datatype?
@hevarnash5036
@hevarnash5036 3 жыл бұрын
One quetion can U make Array in Anonymous Object?
@theJJman2408
@theJJman2408 3 жыл бұрын
Here
@benitokim1793
@benitokim1793 3 жыл бұрын
Why is there less than 1000 likes in a video with almost 12000 views?
@falconfire8759
@falconfire8759 3 жыл бұрын
because ofme u earn money on yt
@kiransingh7078
@kiransingh7078 3 жыл бұрын
It's very difficult and I was so scared of it I mostly cheated in it's exam 😥 I'm spilling the secrets 😁😅😅
@hannaadams4735
@hannaadams4735 3 жыл бұрын
Music is distracting but good video
@Autumn9988
@Autumn9988 3 жыл бұрын
hi
@123EPICLOLZ
@123EPICLOLZ 3 жыл бұрын
Your'e a godsend! I have an exam tomorrow and your clear explanations have helped me tremendously! System.out.printf("Thanks!!!");
@VaikunthPremi
@VaikunthPremi 3 жыл бұрын
this.d = Integer.parseInt(date.split("/")[0]); can u explain this plz
@luck4115
@luck4115 3 жыл бұрын
Me waiting for him to say the line : .....
@xEcstasycz
@xEcstasycz 3 жыл бұрын
sell ur course on udemy bro :)
@Voduke789
@Voduke789 3 жыл бұрын
Does this mean we can finally reject humanity and return Monkey; ?
@shanroviquemirunillo3400
@shanroviquemirunillo3400 3 жыл бұрын
☕☕☕☕☕☕
@haidermirza3674
@haidermirza3674 3 жыл бұрын
5th comment let's gooooooooooooo
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 533 М.
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 23 МЛН
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 49 МЛН
Java array of objects 🍱
6:16
Bro Code
Рет қаралды 100 М.
Java is ALWAYS Pass By Value. Here's Why
5:22
Coding with John
Рет қаралды 116 М.
Java arrays 🚗
6:26
Bro Code
Рет қаралды 172 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 489 М.
Polymorphism In Java Tutorial #92
5:15
Alex Lee
Рет қаралды 338 М.
Getters and Setters Java Tutorial #84
14:12
Alex Lee
Рет қаралды 488 М.
Java Classes & Objects
11:36
Keep On Coding
Рет қаралды 294 М.
Arraylist with objects in Java
12:37
Alley B
Рет қаралды 16 М.
Learn JavaScript OBJECTS in 7 minutes! 🧍
7:01
Bro Code
Рет қаралды 36 М.
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН