toString Method Java Tutorial #91

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
    This toString method java tutorial will show you how to put your own code in the toString method of an object so you can customize it! This will get run instead of your normal (default) toString method!
    I hope this helps you make your toString method :) This is GREAT practice with objects and oop in Java!
    I hope you enjoyed this toString method java tutorial!
    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.
    ~
    Alex Lee

Комментарии • 183

  • @alexlorenlee
    @alexlorenlee  9 месяцев назад +1

    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

  • @chazk.official873
    @chazk.official873 4 года назад +84

    I always go "awwwwhhh" everytime i watch your videos cause it's in your lessons that i get to understand everything 100%. Thank you 😊

  • @RhoChalmers
    @RhoChalmers 3 года назад +32

    Thank you for explaining just a bit more WHY we do the constructor and how it works. "The constructor determines what happens when an object is created" (or something like that). That was the piece I was missing.

  • @saqhus8342
    @saqhus8342 4 года назад +33

    You beauty!!!!
    Best Teacher!!! you teach us not like viewers but as friends. and trust me i was just thinking about toString and was a bit confused and your video popped up and Boom Confusion no more .
    Love You keep it up ♥️♥️♥️♥️

  • @ekster
    @ekster 4 года назад +38

    Thank you for the mention Alex!

  • @samf1135
    @samf1135 Год назад +9

    I don't know how you explain things differently than any other teacher, but your videos have been the biggest help in learning this stuff by far, thank you!

    • @shayorshayorshayor
      @shayorshayorshayor Год назад

      It's because you already knew what to expect. Try learning absolutely foreign concepts from RUclips, you'll be more lost than teachers teaching you their first time. .

  • @eskindermamo4178
    @eskindermamo4178 3 года назад +8

    The fact that I understood what the purpose of constructors were before the video ended says something about the hours and hours of lecture videos I saw of my professor. Thank you so much

    • @elderberries223
      @elderberries223 Год назад

      Exactly what I said. Alex should be teaching at university level.

  • @michaelsakowicz718
    @michaelsakowicz718 2 года назад +4

    This was an incredibly simple, yet incredibly valuable piece of information, Alex. Thank you!

  • @josephrobi3016
    @josephrobi3016 3 года назад

    You make things so much more clear and concise. I salute you big dawg, pls keep these coming.

  • @connerellis1057
    @connerellis1057 3 года назад

    These videos are boss. Short, sweet, and to the point. Very helpful.

  • @dimitrydenscikov5567
    @dimitrydenscikov5567 2 года назад +2

    You have a talent to teach Alex.
    First place if I'm searching for simple explanation. Thank you 👍👊

  • @eitanromanoff730
    @eitanromanoff730 Год назад

    Thank you so much for this tutorial!! The way you broke it down was amazing! I totally understand it now!

  • @Darsky
    @Darsky 3 года назад

    Thank you! Your teaching style makes it much easier to learn not so easy matters!

  • @raws4209
    @raws4209 4 года назад +7

    thank you so much! We started this semester with Java and i was so lost until i found your tutorials. Also I've been looking for a toString tutorial forever!:D
    keep it up!

    • @theblindprogrammer
      @theblindprogrammer 3 года назад

      I love the Java language! If you have any challenging problems, please post. I will help!

  • @billreed1606
    @billreed1606 2 года назад

    You are a great instructor. I hope your new adventure is spectacular!

  • @helenasanturri2606
    @helenasanturri2606 7 месяцев назад

    Finally!!! I was going bonkers trying to figure out toString. I had an inkling I needed a new class, but had no idea how to do it. Thank you.

  • @azabujubangaijin6607
    @azabujubangaijin6607 3 года назад +3

    Thank you so much for taking the time to pass along detailed overviews. I have taken several university-level programming classes and your delivery method surpasses that of my professors. I often feel frustrated by their teaching styles and my lack of long term retention with this subject matter. Your videos give me the confidence I need and help me to feel like I have actually learned something rather than just mimic methodologies from a book. I am interested in programming from a personal development standpoint and to build a better working relationship with many of my technology coworkers.
    Would it be possible to request a video on how to apply different operations to strings (.i.e, Random, Sorts, etc...)? I am struggling to find good information on how to apply these operations to custom classes.

  • @tommieogrady
    @tommieogrady 4 года назад

    The best toString simplification yet. Thanks

  • @mrjoeysouza90
    @mrjoeysouza90 Год назад

    Thank you for all these videos! you are the MAN!

  • @G24fg
    @G24fg Год назад +1

    Thank you very, very, very much. You have helped me and reached my goal👏

  • @sketchy_skeptik
    @sketchy_skeptik 3 года назад

    Seriously, I feel like the classwork is a bunch of mumbo jumbo. Then I come on youtube and dudes like you make it so much easier to understand. Thank you for putting forth the effort to make this understandable.

  • @vikytorious
    @vikytorious 2 года назад +1

    Ohhh, this looked a lot harder than it actually is! Thank you for explaining it so clearly :D

  • @tapiwajeche1266
    @tapiwajeche1266 2 года назад

    You explained very well, keep up the good work

  • @mrzventer1379
    @mrzventer1379 4 года назад

    Really helped in my hour of need!

  • @millertakashi
    @millertakashi 4 года назад +16

    Keep up the good work Alex! Thank you so much for your videos!

    • @alexlorenlee
      @alexlorenlee  4 года назад +4

      thanks! :)

    • @Goated_Abs
      @Goated_Abs 5 месяцев назад

      ​@@alexlorenlee bros on top of his class fasho💀

  • @fredericoamigo
    @fredericoamigo 3 года назад +1

    Thank you for making another helpful vid! Keep up the good work :-)
    Your series is really useful for learning Java coming from python.
    This is basically the same as the __str__(): method in python.

  • @dariahiguchi5890
    @dariahiguchi5890 4 года назад

    Thank you so much for your hard work on making these videos, you are making complicated stuff easy and available, making the internet a better place:)) education industry (especially in CS) is lacking people like you XD

  • @ranuchandrasekara1576
    @ranuchandrasekara1576 3 года назад

    Thank you Alex. I understood 100%🙌🏻💯

  • @konadhanalakshmi8962
    @konadhanalakshmi8962 2 года назад

    Thankyou
    Form making it easy to understand

  • @theblindprogrammer
    @theblindprogrammer 3 года назад

    Thank you, Alex! This cleared up the confusion I had with this method. It is kind of useful when you want to print something especially a class. Thanks.

    • @Tony.Nguyen137
      @Tony.Nguyen137 3 года назад

      But why can you return a int studentId in a String method??

  • @nubscripters3756
    @nubscripters3756 4 года назад +1

    Recently decided to try out java and found your channel. thanks for all the good content! defo subbed

  • @randyanderson6923
    @randyanderson6923 4 года назад +5

    Since I am taking classes in the fall, I am planning to use your vids as a way to refresh my Java skills :]
    Keep up the good work, Alex.

  • @Arlihkonej
    @Arlihkonej 4 года назад

    U must understU must understand bro, u're my men, u're the leader! Thanks a lot homie! Warsaw '86
    Appreciate what u doing for people in the world, share your knowledge!

  • @syuhaimanshaari6452
    @syuhaimanshaari6452 4 года назад

    Thanks man ,you are really helping me

  • @omar100k6
    @omar100k6 4 года назад

    nice video bro thanks a lot keep it up!

  • @elderberries223
    @elderberries223 Год назад

    Love this. Especially that it explains constructors better than my classroom teacher. Now, that makes the toString method but how do we make a println toString in main if we had this all on one class. Thank you again!

  • @carl-henriklien3112
    @carl-henriklien3112 3 года назад

    Nice and easy Alex

  • @shervin9561
    @shervin9561 2 года назад

    very helpful, thank you a lot

  • @sillymoose985
    @sillymoose985 Год назад

    You are amazing man. Keep it up

  • @rezahajitarkhani7788
    @rezahajitarkhani7788 2 года назад

    thanks you helped me a lot

  • @jedwardfanxox6
    @jedwardfanxox6 3 года назад

    you're a legend thank you so much!

  • @pragyasingh5880
    @pragyasingh5880 4 года назад

    your way of teaching is really unique

  • @Miguel-kb9nk
    @Miguel-kb9nk 3 года назад

    You are just amazing, I speak Spanish and my English is poor, but I understand more with you than with my Sp university teacher, thanks :)

  • @user-km4do9fk1y
    @user-km4do9fk1y 7 месяцев назад

    Thank you for the great explanation!

  • @scentedcandle7043
    @scentedcandle7043 3 года назад

    Thank you! So helpful!! :D

  • @joethompson8147
    @joethompson8147 4 года назад

    Great explanation Alex

  • @youkeshgurung5280
    @youkeshgurung5280 4 года назад

    You are a great teacher bro♥️♥️

  • @rachelballouz6311
    @rachelballouz6311 2 года назад

    I love your videos!!

  • @mukulsharma5738
    @mukulsharma5738 3 года назад

    THANK YOU SOOOO MUCH>.... I've been stuck for like 3 weeks trying to figure this out ...It's so damn easy .Again ..THANK YOU

  • @huynhhuunhan6318
    @huynhhuunhan6318 4 года назад

    hello alex, thanks you for this video.

  • @hanishchandra3869
    @hanishchandra3869 3 года назад

    This helped me a lot
    Thanks, because of this I could complete my Car Dealership Project.

  • @aihacker42
    @aihacker42 3 года назад

    Super content, thx!

  • @vikkybb881
    @vikkybb881 4 года назад

    Awsome job done...please make more tutorials on java...

  • @jericodevega6753
    @jericodevega6753 4 года назад +3

    waiting for ur next chill sesh ☕

  • @Kidpunk98
    @Kidpunk98 3 года назад

    "Since it came packaged with a consusctor and a toString methond."

  • @ferfykins
    @ferfykins 4 года назад +2

    Love your channel!! Any chance you could make a video on Lambdas?

  • @ericamuhammad5082
    @ericamuhammad5082 2 года назад

    Thank you!

  • @sartajsajid7941
    @sartajsajid7941 4 года назад

    Thanks a lot!

  • @jawadhassan3657
    @jawadhassan3657 Год назад

    Thanks alot man

  • @annakauntz8108
    @annakauntz8108 4 года назад

    your videos are super helpful!! Any chance that you will make one about Streams? :)

  • @savoir_lire_l_arabe
    @savoir_lire_l_arabe Год назад

    Thank you so much

  • @rebergangster26
    @rebergangster26 4 года назад

    good job bro and u are becoming the next bucky roberts

  • @tewodrostilahun3801
    @tewodrostilahun3801 4 года назад

    Alex You are fantastic .It is helpful lesson . you are Iron Man

  • @walex1281
    @walex1281 Год назад

    Beautiful man absolutely loved it From India 🇮🇳

  • @qcdads
    @qcdads Год назад

    Thank You!!!!

  • @sadaffaizi5364
    @sadaffaizi5364 Год назад

    thank you!!!

  • @y01cu_yt
    @y01cu_yt 2 года назад

    THANKS!

  • @yeromin_g
    @yeromin_g 2 года назад

    Briefly, interesting, understandable.

  • @Archangel66937
    @Archangel66937 3 года назад +1

    Thanks the vídeo was so helpfull, but i have a question, what i need to do if i only want to print one variable with the text of the tostring and in the same time can print more variables?

  • @aditinasikkar60
    @aditinasikkar60 3 года назад

    Awesome!

  • @trail000
    @trail000 3 года назад

    Thanks 👍

  • @jalu2581
    @jalu2581 9 месяцев назад

    Thanks 😊

  • @jerrykankelborg9943
    @jerrykankelborg9943 3 года назад

    much appreciated

  • @mech2981
    @mech2981 Год назад

    thanks mate

  • @muinfinityy
    @muinfinityy 2 года назад

    did anyone ever tell you that you have a great voice becuse you do
    also thanks for saving my grades

  • @shivangsaraswat315
    @shivangsaraswat315 4 года назад

    Big fan of your's

  • @nawfalnjm5699
    @nawfalnjm5699 3 года назад

    thank you

  • @fatimazahrabenhammou8495
    @fatimazahrabenhammou8495 4 года назад

    You saved my exam hhh thank youu

  • @ghettoslick2000
    @ghettoslick2000 11 месяцев назад

    Thanks bro

  • @renecabuhan1675
    @renecabuhan1675 4 года назад

    Good morning sensei.

  • @lianattily282
    @lianattily282 3 года назад

    how do I override a toString method for a list or map? I wrote a class for a kind of List and I need to override the toString method? Do I use an iterator?

  • @louiemunoz
    @louiemunoz 2 года назад

    thanks

  • @NavyCrack1
    @NavyCrack1 4 года назад +2

    I've waiting for this tutorial. Thank you :)

  • @epicflails5471
    @epicflails5471 2 года назад

    this guy is saving my grade i swear

  • @ahmedsellami1743
    @ahmedsellami1743 4 года назад

    Hello Mr Alex . Do you have any recommended game development books with java ?

  • @dfsafdsafsvgdf
    @dfsafdsafsvgdf 4 года назад

    hey alex! could you consider to do a video about binary tree? it would be gold for me :)

  • @dimitarvelinov277
    @dimitarvelinov277 2 года назад

    Watching this video, I had the intention to learn one thing. I learned five things.

  • @TacerTV
    @TacerTV 4 года назад

    Can you please make a video on how to create ActionListeners for buttons because I have problems

  • @nobrainbro5297
    @nobrainbro5297 3 года назад +7

    Alex: Coding is Fun!
    Me: Just for the Teacher

  • @theexplorer9927
    @theexplorer9927 3 года назад

    2:35 does "s" is the student initial or the String mentioning?

  • @yashrajsharma1
    @yashrajsharma1 3 года назад

    Sound of keyboard is so satisfying.

  • @jediknight9371
    @jediknight9371 2 года назад

    I hope I can remember this method in my APCSA exam

  • @musaadalsunaid7474
    @musaadalsunaid7474 2 года назад

    you're amazing

  • @theonlytails
    @theonlytails 4 года назад +6

    Can you make a tutorial about annotations or enums?

    • @circuit10
      @circuit10 4 года назад

      I think he already did one for enums

  • @user-el3kb2it5t
    @user-el3kb2it5t 6 месяцев назад

    Legend Legend…… what a legend

  • @jakeysmaser
    @jakeysmaser 2 месяца назад

    Not sure if you've covered this in a different video, but have you gone over how to use java api methods like localDate? Love the videos

  • @ShyamJourneyz
    @ShyamJourneyz 3 месяца назад

    nice video on toString(). however, i have a question. what benefits does this have over a void method such as public void describe(){ System.out.println(student+ " "+name);} and a call to the method through s1.describe(); and s2.describe();. Could it be because of memory usage or time complexity 🤔. Just a newbie trying to learn java, TIA.

  • @hiii3763
    @hiii3763 4 года назад

    do you have tutorial about swing?

  • @kiranacharya6504
    @kiranacharya6504 4 года назад

    Can you please make videos on projects based on java with backend connection

  • @jakekong8489
    @jakekong8489 4 года назад

    Hello can you do a tutorial on payroll statement