Return Statement in Java #27
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
The return statement in java helps you send a value from the result of your method!
👑Start practicing now with 10 free java programs - alexlorenlee.com/
🌅 Source Code - github.com/alexlorenlee/JavaT...
Here's an example of a return statement in java:
public static int add(int a, int b) {
return a + b;
}
"int" on the first line is the type of what is returned. "a + b" is what's returned when the method is called. Like add(5, 4);
re
This java return statement in java can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned-by-doing!
I hope you enjoyed this tutorial on the return statement in java! I like to have a nice mix of tutorials and actual projects for you all :)
Do you want to learn how to write java code from scratch, in Java? Check out my Java Tutorial For Beginners: • Coding For Beginners I...
Was this able to help you write return statements in your methods? -
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
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
drive.google.com/file/d/1szuFv-DhcuKlzK61wwl-bE5VwHdMKEoB/view?usp=sharing
came here to understand the return statement, ended up also understanding arrays. seriously... thank you king..
Me too!
e
I already did understand arrays. But return was really unclear to me, I was asking myself questions like "Return the value to where?"
Same here
@@eliyahukuperman9250 😂😂😂sameeeeee
Dude I am not gonna lie but i learned about methods and return statements from many java courses online and was still confused about it .But your explanation helped me the most in understanding the concept clearly. I hope you get more subscribers and please keep posting more videos. :D
you are not alone
Alex is amazing
Xd
me too
In 2023 made this understandable! Thanks for this video!
Seriously, why can't all teachers just make it this simple? Thanks Alex!
I've been working on an assignment that asked me to return a new string that was in the middle of some characters () for 7 hours. I FINALLY got it to work with 2 methods and the return statement. You're an awesome teacher! Thank you from the bottom of my exhausted student heart.
this return thing was totally messing my mind up...thank god you are here man
you welcome!
Dude. Your videos are so important, because you don't focus on complex code, you focus on simple code that allow us to think in a bigger and more complex code once we fully understand the basics. Thank you so much for that.
Alexç your teaching method is totally out of the league. Just wonderful. I believe whatever you do, or you teach, your listeners will get the whole idea! Luck!
I've been so confused about return statements and I've tried multiple videos, asking my professor, and reading the book with no luck. Your video helped it finally click. thanks!
Dude this chan is a masterpiece fr, for me who learned c sharp first but then changed to java your chanel was the real help for me ( i didn't even bother talking a course about Java due to semilarity between java and C# ) but found out that it's harder than I thought and then I put my hand on your 14 min course and then here am I finishing your chanel, hope ya keep going and get much higher subscribers num, thanks for everything
Bro, I was struggling with this for ages! Thanks, I'm gonna check out your other videos now!
Just started an online java course, and your videos are by far the best i have found. You deserve more, thank you and good luck with the channel!
WOOOOOOOOW! This is the first time that I'm leaving a comment on youtube, but now I had to, just to say one big BRAVOOOOO for you, Alex! I lost so many hours trying to figure out methods and return statements from other online courses , but you perfectly explained it in just 14 minutes!!! Thaaaank youuu soooo muuuuch and you just have earned one more subscriber :D Best regards from enlightened viewer :)
Omg thank you so much, I was having such a hard time with these methods and stuff but you made it look so easy.
You are a savior man !!!
Thank you so much for all of your videos. I'm taking a college-level Java course (solely as a requirement) and I have learned the entire coursework from your tutorials. You even made it kinda fun! I hope you make a million dollars.
Alex, you just earned new sub from me! I mean jesus our java course is explained so confusing way but every time I need help I just found that thing explained by you and voila! You sir, are the best java teacher in this planet for sure! Keep up the good work,
greetings from Finland
you made it really simple ,you might be the sweetest programmer on this platform
Very useful! I didn' t get this subject, and you explained it perfectly! This is what i call quality, earned a sub!
I'm a begginer at coding and your videos are so easy to understand! I STAN YOU, you got yourself another subscriber
Hey Alex, thank you so much for helping me get through my Java 1 class, these videos are great!
Hi Alex...the best thing in your video is "when you are typing the keyboard that sound makes us feel like... yeah we can do it...we can learn code easily. Thank you for making such simple and informative videos.
Thank you so much Alex for your videos! They helped me understand a lot of concepts I couldn't from my course.
you do a really good job explaining, putting all in simple words. love your channel keep it up.
Finally, return statement explained properly! Thank you!
You are the only teacher who taught me why methods is useful in java..thank you
I was struggling to understand return statements so I could complete my lab tomorrow for my beginner CS course. The zybook wasn't cutting it...but then I found your video. Thank you so much!
Thank you so much, i was not understanding what the reason of the return statement at all but you just clarified it to a tee
I was having trouble understanding this part earlier but you helped me out with this video.Thank you so much man!
I just love the way you are teaching .thank you for this video
Hey Alex, your explanation for the return statement was awesome!
I just wanted to learn while having some food and thought I could use the few minutes.
Totally worth it - simplicity and well explained examples. Keep on! :)
Alex your personality is amazing, and the videos help me understand everything so much better. Thank you.
Good man, good teacher. honestly your explanation was quick, simple and veeeeery needed! Thank you
Hey bro I wanted to say thank you for making this video. For the longest this was giving me issues and this cleared a lot up.
the little details mahn, the walkthrough after you write up your code is amazing! Brofist!
This was so so helpful. You are a great teacher!
Great videos! Seriously, these have been a life saver, and have helped me tremendously in my Java class to better understand everything. The textbook was not enough for me, but the videos with detailed explanations make all the difference.
agree
you do everything very simple and easy way, thank you so much bro.
Great video and explanation, better than some bootcamp lecturer's. appreciate it
This is the first time that I understand return vs void methods. Thanks so much
Alex thank you very much to make return staments very easy to understand
FINALLY CLARITY TO RETURN STATEMENT!! NOW I CAN FOLLOW ALONG BETTER THANK YOU SO MUCH!!!
Thank you so much Alex! This really helped!
Great explanation Alex! Thanks a bunch!
just all what i needed to know in one video,i love you bro
Broo ur great...ur teaching style is awesome
Hey man. Another awesome vid!
Thank you so much man, I will never forget you
Return statement for me was one the most confusing to understand so far, this is only video that explains it proper. Kudos👍
This is so perfectly explained I really understand it now. Thank you so so much!
This is sooooooo helpful!!! Thank you so much!!!!
This is very useful coming from someone who slept through the return lectures
Great video facing too much problem in understanding return statement and this video cleared my doubt
06:40-06:42 is when everything became clear, thank you Lee!
yoooo, this is so helpful, thank you so much!
Topre keyboard gang! I got a Leopold FC980C. Just love the 1800 layout for data entry. HHKB is also a great layout.
Alex your explanation is great sir it make a lot of sense to our logic
Literally this helped me to understand. Thanks❤. I appreciate it.
I was accepted into an internship in June, for coding and web development, thru a non profit called "I C Stars," here in Chicago. They specifically work with people like me, from neighborhoods, like mine, and just wana say thanks for the learning! Trying to understand how to speak computer, and fluently, is confusing AS, but you break it down much more efficiently, compared to some other free teaching programs I'm attempting to learn from. Appreciate u. Liked/Subbed 🙏🙏
man i am watching you in 2020 and still you're better than my university's professor.........keep it up bro
The most relevant tutorial. Thanks n regards
That literally helped me a lot.
1 k subscribers in one day ! Your channel is growing very fast , Congratulations.
Thank you very much I ways felt confused about returning methods thank don't stop teaching us
I just recently started to learn Java and my native language is Spanish and I could not understand this concept. This means that you are a great teacher!!! Thank you, now I can go to bed
THANK YOU SO MUCH PROFESSOR ALEX!!!
Still a bit confused, but that's a HUGE step from "Completely Lost" I was up till now. I was actually able to get a better idea of what the values mean. Compared to be before, "Why does it say public static void? Why does does the printed text have it's parts scattered all over through different names?"
Now I would still be lost if I had to do it myself, but slowly I'd get it eventually. This was a great starting out point to lead me to the right direction. Months of frustration solved in less than 2 days.
Thank you again.
thanks
your java tutorials help me a lot
this guy deserves more than this!!
you are saving my life thank you so much. you are doing this worlda huge service.
This was helpful! Thanks!
Thank you so much for helping.
i have two words for you, alex lee.
THANK. YOU.
Thanks man, you really helped me out. Love From India.
You are a better explainer!
Thank you sooooo much. So many people on the web want to be so obtuse.
Dude seriously. Thank you.
Great video. Thank you.
Thanks for the lecture sir!
You are the best!! Thank you for this video :)
Simply great, you are the best
Bro simple and very good explaination ever😍👍
thanks bro nice teaching now understand return statements thanks alot!!!!
Bro, this tutorial was really cool and helpful
Your Explanation is... osm sir 😊
THANK YOU SO MUCH!!!!
Thank you so much for this
Wow i finally got it thanks !
Awesome Alex[ ] great teacher!! Drop a video on access modifiers\ thank you.
Awesome 🙌🏼
Very well explained!
Thank you Alex lee
This was a great help to me I have been thinking of return statement from many day
Regards
Devansh Goel
You are de best man.... Thank you!!!
its very amazing , thank u bro
Wow. Dude, this video is awesome!!!! 🙏 thank younnnn
you explained it better sir thank you
absolutely buying your java course when i have the money. you RULE.
Hello, do you think you could do a video that shows us the differences between return and void? Thank you!
best channel for understanding Java.
Great, thank you so much
DIFFICULT TO EASY IN JAVA = ALEX 😄
BRO YOU ARE AWESOME!!!
LOVE FROM INDIA!!!!