Тёмный

Java generics ❓ 

Bro Code
Подписаться 1,9 млн
Просмотров 100 тыс.
50% 1

Java generics tutorial for beginners
#Java #generics# tutorial
Java generic methods 00:50
Java generic classes 07:25
Java bounded types 18:58

Наука

Опубликовано:

 

25 июл 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 203   
@BroCodez
@BroCodez 3 года назад
//----------------------- Generic Method ----------------------- public class Main { public static void main(String args[]) { Integer[] intArray = {1, 2, 3, 4, 5}; Double[] doubleArray = {5.5, 4.4, 3.3, 2.2, 1.1}; Character[] charArray = {'H', 'E', 'L', 'L', 'O'}; String[] stringArray = {"B","Y","E"}; System.out.print("Integer Array: "); displayArray(intArray); System.out.println(firstIndex(intArray)); System.out.print("Double Array: "); displayArray(doubleArray); System.out.println(firstIndex(doubleArray)); System.out.print("Character Array: "); displayArray(charArray); System.out.println(firstIndex(charArray)); System.out.print("String Array: "); displayArray(stringArray); System.out.println(firstIndex(charArray)); */ } // Generic method public static void displayArray(Thing[] array) { for(Thing x : array) { System.out.print(x+" "); } System.out.println(); } // Generic method with generic return type public static Thing firstIndex(Thing[] array) { return array[0]; } } //----------------------- Generic Class ----------------------- public class Main { public static void main(String args[]) { //bounded types = you can create the objects of a generic class to have data // of specific derived types ex.Number MyGenericClass myInt = new MyGenericClass(1,9); MyGenericClass myDouble = new MyGenericClass(3.14,1.01); //MyGenericClass myChar = new MyGenericClass('@','$'); //MyGenericClass myString = new MyGenericClass("Hello",'!'); System.out.println(myInt.getValue()); System.out.println(myDouble.getValue()); //System.out.println(myChar.getValue()); //System.out.println(myString.getValue()); } } // ---------------------------------------------------------------- public class MyGenericClass { Thing x; Thing2 y; MyGenericClass(Thing x, Thing2 y){ this.x = x; this.y = y; } public Thing2 getValue() { return y; } }
@TechnoSan09
@TechnoSan09 Год назад
thank you so much love u bro forever subscriber
@Crispeaks
@Crispeaks 8 месяцев назад
Single-handedly taught me Generics and helped me complete an assignment in 30 minutes. Epic!
@tomaszkarolak6179
@tomaszkarolak6179 3 года назад
The best tutorials, I've ever seen on YT, thx bro!!!
@john81487
@john81487 Год назад
I always go through one of these videos before starting my bootcamp lessons. It makes everything so much easier to get into.
@angelcastineira2561
@angelcastineira2561 3 года назад
a lot of new stuff but really well explained, thanks!
@jojovstojo
@jojovstojo Год назад
Bro this was the heaviest video of all till now ! Literally my brain just exploded ! But extremely simple and direct - So thank you for such a badass of a teacher
@patrickjaposmack4573
@patrickjaposmack4573 Год назад
Excellent tutorial video about generic classes and methods!
@furki3556
@furki3556 3 года назад
you have really the best tutorials I have ever seen, thank you. greetings from germany
@kedea159
@kedea159 3 года назад
Really the best tutorials on RU-vid, that I've seen, keep up the good work Bro!
@lamias7712
@lamias7712 2 года назад
Thank you so much for your simplified explanation . Straight to the point.
@chris07ism
@chris07ism Год назад
Thanks again for another relatively simple concept explained in a brilliant way.
@faniliana
@faniliana 3 года назад
This would be the best java tutorial videos out there. Thank you bro
@larkinthesky
@larkinthesky 3 месяца назад
You, my dear Sir, are a legend. Thank you so much for all these incredibly useful instructional videos.
@Naanu_kartik
@Naanu_kartik 3 года назад
concept cleared 🙌 Thanks Bro...and you have an unique way of explaining the things.
@ravenguirao9081
@ravenguirao9081 8 месяцев назад
Thanks, I finally understand Generics, some code training/bootcamps explain it really complicated.. but with you i realized it's just that simple.
@roxorsrule8604
@roxorsrule8604 2 года назад
Wow, I'm glad I found your channel. You style is crystal clear and to the point. Although I'm taking other classes you clarify the points I was having trouble with. Thanks man!
@jesseemana9598
@jesseemana9598 Год назад
this channel is a gold mine
@kishorekumar.v6093
@kishorekumar.v6093 6 месяцев назад
Well said Bro, you did exactly what we want. The Duration with perfect explanation, great effort that you spend on it. It pay off man. Good Luck ...
@user-yz9cp6fp4k
@user-yz9cp6fp4k Год назад
You are the best !!! Thanks for lessons in 2023
@kedarsambhus3623
@kedarsambhus3623 3 года назад
Amazing! Easy to understand explanation to generics. Thanks bro.
@Ethhix
@Ethhix 2 года назад
Thank you for making this video, it was very helpful and informative! I appreciate it.
@victoriagee1059
@victoriagee1059 2 года назад
Your code is so clean. You really know what you are doing!!!!
@EdgarLopez-dq6zv
@EdgarLopez-dq6zv Год назад
I really like your videos. You explain complex concepts appears easy, thx man
@comrade107
@comrade107 6 месяцев назад
You are awesome! Thanks for all the help!!
@swankitydankity297
@swankitydankity297 3 года назад
Fantastic tutorial! Thank you so much :)
@zxnnightstalker2289
@zxnnightstalker2289 3 года назад
Very clear explanation. My first clear understanding comes from you. Thanks a lot. ;)
@av2678
@av2678 Год назад
Wow! Generic is so damn useful. I wish i saw this video yesterday lol but still, better than never. Well explained too
@OnlyOneGedeon
@OnlyOneGedeon 2 года назад
Thank you for this very helpful video
@chamindilhara5765
@chamindilhara5765 Год назад
thanks for teach us
@calebkrauter4027
@calebkrauter4027 4 месяца назад
Very helpful! Thank you.
@deeplife9654
@deeplife9654 Год назад
Let start a campaign to give bro best teacher on youtube award !!!!! ❤❤❤❤❤❤❤ .
@quarduroy1
@quarduroy1 Год назад
Phenomenal explanation, thank you
@Garrison86
@Garrison86 2 года назад
Amazing! thanks for this awesome explanation, really appreciate your videos.
@jaaeamor7901
@jaaeamor7901 Год назад
Thanks for making this tutorial. Appreciate it 👍
@wolanus
@wolanus 3 года назад
Thanks for the tutorial, Bro.
@karanbrar1934
@karanbrar1934 2 года назад
That 1 dislike is from bro himself, just to keep himself humble... ;)
@walterwhite2418
@walterwhite2418 Год назад
Great video thx for your effort !!
@nawfalnjm5699
@nawfalnjm5699 3 года назад
man this video is full of great info , thank you so much !
@andreajeanbatchelor5142
@andreajeanbatchelor5142 2 года назад
Great examples!
@solutionbybrain9978
@solutionbybrain9978 11 месяцев назад
You are so smart to simplify such big task in a simple ways Thank you bro! Of Eritrea 🇪🇷
@almanduku9043
@almanduku9043 3 года назад
Very useful lesson , thank you sir :)))
@benderbg
@benderbg 9 месяцев назад
Great explanation of an important topic. Thanks Bro!
@ozbayhilmi
@ozbayhilmi 4 месяца назад
Thank you for this video.
@andersontiban5356
@andersontiban5356 Год назад
so helpful thankyou
@mustapharaimilawal8053
@mustapharaimilawal8053 3 года назад
Thanks a lot for this amazing tutorial.
@atongpayatoyatu2760
@atongpayatoyatu2760 3 года назад
what the hell so good java tutorial i ever saw in youtube. thank you very much!
@ginasomara267
@ginasomara267 3 года назад
most helpful generics video on the internet. hands down
@mariuspet89
@mariuspet89 Год назад
Very nice video. You have a nice way of explaining programming concepts.
@manyokdavidkuch2054
@manyokdavidkuch2054 3 года назад
Very good explanation!! Thank u
@sergeyb6071
@sergeyb6071 3 года назад
wow that's a lot of stuff in one tutorial 🤯👍
@tunghuynh8504
@tunghuynh8504 2 года назад
Thanks Bro, this help me to easily understand the basic concept of Generics in Java
@ndthdproduction2900
@ndthdproduction2900 2 года назад
That's so good for the basic bro ! Hope you do more a bout advanced like more complex generic methods. Hope you doing well bro
@dieseldust5315
@dieseldust5315 2 года назад
Great Tutorial!
@traveltheworld5241
@traveltheworld5241 Год назад
Self learning but I understand easily ,this guy is awesome...
@alanwarthon
@alanwarthon 11 месяцев назад
Nice, thanks
@chromeshock3774
@chromeshock3774 Год назад
Dam, these videos are gold! So helpful in my bootcamp.
@mackymichel8052
@mackymichel8052 2 года назад
Great.
@nasseranaoui3315
@nasseranaoui3315 Год назад
That was a good tutorial , thanks :D
@alexreznitsky6338
@alexreznitsky6338 Год назад
Thanks a lot!!! great explanation!
@hgatl
@hgatl 3 года назад
Awesome explaining, thx bro!
@darianchan4649
@darianchan4649 3 года назад
very nice tutorial bro keep em coming !
@dbvs007
@dbvs007 2 года назад
Awesome 👏
@v1krv
@v1krv 2 года назад
Well explained
@Remolhunter97
@Remolhunter97 3 года назад
Best tutorials ever, holy shit it's pleasant to learn looking your videos bro, keep going !
@janjeromesoriano1182
@janjeromesoriano1182 3 года назад
Thank you, it's very helpful.
@ethankates5359
@ethankates5359 Год назад
very helpful, thank you
@kemann3815
@kemann3815 2 года назад
Wow. Magnificent
@fitzsimmons7
@fitzsimmons7 4 месяца назад
this was helpful, exploded my brain, thanks
@polatsaryerli3071
@polatsaryerli3071 2 года назад
thx bro great video so helpful
@SoumilSahu
@SoumilSahu 2 года назад
Thanks a lot, this was really helpful!
@kaushalprasadyadav9242
@kaushalprasadyadav9242 2 года назад
Great work bro👍
@kyomuhendoprecious8414
@kyomuhendoprecious8414 Год назад
Thanks alot
@quanyufeng579
@quanyufeng579 2 года назад
Wonderful!!
@Snowmanver2
@Snowmanver2 2 года назад
best channel with best tutorials out there!
@miuwai6211
@miuwai6211 2 года назад
Very clear explanation. Thank you Bro. :)
@kkspuder
@kkspuder 2 месяца назад
really thx bro, though i'm watched some videos about generics, i'm still struggling with its use, here's some examples also other videos i watched but i'm not got a good understanding until you open the ArrayList class, everything is clear, i got the key point , this is really a nice video
@rokhafm9412
@rokhafm9412 Год назад
Thank you bro! Very useful video
@diamonddunyasi4945
@diamonddunyasi4945 2 года назад
Thx Bro I think you were descend from the sky 😀. We are waiting for more tutorials... Thank you
@marybenish9716
@marybenish9716 2 года назад
Love this channel!
@NatyTor
@NatyTor Год назад
ho mannnnnnn your video are so clearly and amazing!! love you bro! thanks for all!
@anonimanonim1223
@anonimanonim1223 2 года назад
Great
@mihirkohli4804
@mihirkohli4804 3 года назад
please do data structure love your content
@yifansu8432
@yifansu8432 Год назад
This video is sooooooo awsome.......
@shaynazoedeguzman7418
@shaynazoedeguzman7418 Год назад
Superb! TYVM Bro code!
@abvy25
@abvy25 3 года назад
Best explanation...
@murrayKorir
@murrayKorir 2 года назад
well explained especially that part of where you can use 'Thing' instead of 'T' clears the mystery behind why is it always T,E or S.
@hardcoded6325
@hardcoded6325 2 года назад
very good, the best explanetion in the word!!! (i'm from Brazil)
@user-gc9ob4pb3w
@user-gc9ob4pb3w Год назад
finally I got it. Thank you, Bro!
@danielmilewski7659
@danielmilewski7659 Год назад
awesome!
@khazarkhalilov755
@khazarkhalilov755 7 месяцев назад
Liked & Subscribed ! 😊
@galgao2
@galgao2 2 года назад
Good job, Bro!
@chap_01
@chap_01 2 года назад
Nice channel, nice english, nice elocution, nice explaining.
@waleedharalkathiri1836
@waleedharalkathiri1836 3 года назад
THE BEST EVER EXPLENATION OF GENERIC CLASS AND METHODS IN RU-vid HISTORY🤣
@mrindian7422
@mrindian7422 5 месяцев назад
Nice
@MrLoser-ks2xn
@MrLoser-ks2xn Год назад
Thanks
@Speak_The_Truth_33
@Speak_The_Truth_33 6 месяцев назад
Thanks bro
@Elan_Altair
@Elan_Altair 2 года назад
This was really helpful for my exams ,Tq broooooooooo
@codeevolution1
@codeevolution1 Месяц назад
best teacher on youtube❤❤
@alimulmahfuztushar7001
@alimulmahfuztushar7001 3 года назад
Love your content.
@davidionesi9207
@davidionesi9207 3 месяца назад
Thank you, my Bro.
@asanthadhananjaya4239
@asanthadhananjaya4239 Год назад
Thank you!
Далее
Java serialization 🥣
21:13
Просмотров 70 тыс.
Generics In Java - Full Simple Tutorial
17:34
Просмотров 1 млн
Java lambda λ
18:00
Просмотров 87 тыс.
Java HashMap 🗺️
13:05
Просмотров 75 тыс.
Java multithreading 🧶
15:18
Просмотров 120 тыс.
Java Generics Tutorial
12:23
Просмотров 179 тыс.
Python 3.12 Generic Types Explained
18:27
Просмотров 57 тыс.
Java calculator app 🖩
34:36
Просмотров 400 тыс.
Java Data Structures Tutorial
1:39:50
Просмотров 321 тыс.
All Rust string types explained
22:13
Просмотров 147 тыс.
Optionals In Java - Simple Tutorial
15:53
Просмотров 196 тыс.
Странный чехол из Technodeus ⚡️
0:44