Methods in Java Tutorial #26

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ธ.ค. 2018
  • $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
    It's very easy to make methods in java. ✅ In this video I show exactly how to make a method in java for your program!
    👑Start practicing now with 10 free java programs - alexlorenlee.com/
    🌅 Source Code - github.com/alexlorenlee/JavaT...
    Usually for your first java methods you'll use the keywords "public static void". You can call whatever's in your method with just one line!
    I had a horrible time with methods when I first started out. I didn't fully understand them and I had no idea how to use them for projects. Once you learn how to create a method in java and learn that it lets you run multiple lines with just one line, then it's not too bad :) If you followed along, congrats! You learned-by-doing!
    I hope you enjoyed this java methods tutorial for beginners! I like to have a nice mix of tutorials and actual projects for you all :)
    Do you want to learn how to code from scratch, in Java? Check out my Java Tutorial For Beginners: • Coding For Beginners I...
    How are you using methods in java in your program?
    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

ความคิดเห็น • 430

  • @alexlorenlee
    @alexlorenlee  8 หลายเดือนก่อน +6

    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

  • @logansteinmeyer7725
    @logansteinmeyer7725 4 ปีที่แล้ว +675

    i learned more in this video than i did the whole semester in my class.

    • @faisalalamri4091
      @faisalalamri4091 4 ปีที่แล้ว +45

      well clearly you were not paying attention bro

    • @marwanepagolog4878
      @marwanepagolog4878 4 ปีที่แล้ว +44

      @@faisalalamri4091 that's not the only problem. Actually, teachers be like, write examples then another then another then another with in the same hour, let's say you asked the teacher for clarification, the teacher will bring something harder (Don't expect the easiest basic to be explained through another example from the same topic, ) But sure once you learn the first language, everything will be easier to understand the more you proceed on learning.

    • @RobloxboyplayzMUSCLELEGENDS
      @RobloxboyplayzMUSCLELEGENDS 4 ปีที่แล้ว +4

      I thought I was the only one lol.

    • @ampten
      @ampten 4 ปีที่แล้ว +1

      ikr

    • @shubhamoydas3139
      @shubhamoydas3139 3 ปีที่แล้ว +5

      Are you lerning method call for a whole semester?

  • @mehmetyilmaz3924
    @mehmetyilmaz3924 4 ปีที่แล้ว +1024

    System.out.println(“Thank You”);

  • @codingwolf5369
    @codingwolf5369 4 ปีที่แล้ว +190

    I told my Advanced Java class about you. You have helped me out a lot so far to relearn the stuff I have forgotten since the beginning of the year.

    • @alexlorenlee
      @alexlorenlee  4 ปีที่แล้ว +17

      Coding Wolf I’m glad to hear that :) thanks!

    • @codingwolf5369
      @codingwolf5369 4 ปีที่แล้ว +6

      @@alexlorenlee I am having a lot of trouble with my class however. I took my first class in the Spring and the second part in the Fall and I seem to have forgotten most of what I have learned and I am really struggling trying to catch back up. :(

    • @otpreet
      @otpreet 3 ปีที่แล้ว +1

      Coding Wolf u have to do it everyday

    • @pookapookyoyo3095
      @pookapookyoyo3095 3 ปีที่แล้ว +1

      @@codingwolf5369 update on if you kept going? :D

  • @neulseo8405
    @neulseo8405 4 ปีที่แล้ว +89

    MIND BLOWN...I was struggling so bad all semester long on learning how to use methods and just this 5-min video tutorial solves it all. Thank you so much for existing on TH-cam!

    • @cansu4110
      @cansu4110 ปีที่แล้ว

      I agree! Way better than my class instructors.

  • @janicemiranda6664
    @janicemiranda6664 5 ปีที่แล้ว +101

    Thank you! You explain this better than my professor!

  • @lucasdeyton8842
    @lucasdeyton8842 ปีที่แล้ว +10

    Dude I've done Udemy classes, I've done codeacademy. I work in IT. Your videos have been the best way for me to fundamentally understand what is happening in Java and CS as a whole. You explain it in a very organic way.

  • @Aquaticgoat37
    @Aquaticgoat37 2 ปีที่แล้ว +2

    I literally used this guys tutorials to help pass my java class for school. Never worked in the book, just followed all his tutorials and feel way more confident going into coding than I ever did with the book. TYSM

  • @wimelberroa5669
    @wimelberroa5669 3 ปีที่แล้ว +4

    just wow!! i'm just starting my second semester and I could not get this in my head. You taught it to me in a few minutes. Thank YOU!!!

  • @chanseyhaveng6751
    @chanseyhaveng6751 4 ปีที่แล้ว +5

    Just imagine when you need help with java in youtube, and this guy is popping out all the time, "You're are a legend", love you.

  • @Lonewolf5272
    @Lonewolf5272 2 หลายเดือนก่อน +1

    This taught me more about methods than anything I leaned in class. Why can’t we have professors like this?

  • @Jwolfen
    @Jwolfen 2 ปีที่แล้ว

    Thank you so much, in school I got confused on this subject, hardly scraped by whilst still not understanding it, and then everything went downhill. it makes way more since now.

  • @fredericoamigo
    @fredericoamigo 3 ปีที่แล้ว +8

    Dude, I'm starting to become a fan of yours! These tutorials are some of the better ones I've seen so far!
    Thanks for helping all of these people out, thanks for keeping it genuine and real, and keep up the good work!
    Best regards from an aspiring software engineer and computer science student from Norway!

  • @chrisa9629
    @chrisa9629 4 ปีที่แล้ว +1

    The way you did that made so much more sense than what my teacher was trying to get me to understand. Thanks a bunch

  • @shawncampbell5579
    @shawncampbell5579 ปีที่แล้ว

    im a senior ECE major and your simple java explanations are giving me hope at understanding Java! THANK YOU

  • @jasonhartman9546
    @jasonhartman9546 ปีที่แล้ว

    I've been stuck on this for a while. This was very clearly explained, thank you!

  • @jibb1451
    @jibb1451 4 ปีที่แล้ว

    I have been screwing with methods for probably 2 hours now. This video immediately fixed my problems. Thanks!

  • @paigewarden3721
    @paigewarden3721 ปีที่แล้ว +1

    I've watched 6 videos on methods, and this is the first one where it's actually registered with me!
    THANK YOU!

  • @unknownsilence5963
    @unknownsilence5963 3 ปีที่แล้ว +8

    When a short 5 minute video teaches you better than the chapter in a textbook your professor assigned you

    • @philip2260
      @philip2260 3 ปีที่แล้ว

      i know its crazy

  • @KarEem-rs2wf
    @KarEem-rs2wf 3 ปีที่แล้ว

    I started learning java a few weeks ago and never really understood whats a method. Thank you so much Alex!

  • @marvinramirez5318
    @marvinramirez5318 4 ปีที่แล้ว

    Thank you I just learn this two days ago and your explanation is so easy to understand!

  • @eliz9984
    @eliz9984 2 ปีที่แล้ว +1

    This honestly helped me with an assignment I was struggling with thank you so much

  • @kentacle1679
    @kentacle1679 5 ปีที่แล้ว +48

    You deserve more subs good sir.
    Thank you for the easy to understand video.
    :)

    • @alexlorenlee
      @alexlorenlee  5 ปีที่แล้ว +3

      Kent Carl Benjo Gener thanks Kent!

    • @kitchentable8529
      @kitchentable8529 5 ปีที่แล้ว +3

      Agreed. Super helpful videos

  • @makhailabentil2720
    @makhailabentil2720 2 ปีที่แล้ว +1

    Dude.. no lie you helped me ACE my test studying the night before. You’re the best

  • @paularojas4644
    @paularojas4644 4 ปีที่แล้ว +2

    omg I want to thank you for this. Things become enjoyable when you understand. Thank you.

  • @snipadipa221
    @snipadipa221 2 ปีที่แล้ว +2

    Your videos are amazing, you have saved me this semester in my Java class

  • @yikes3430
    @yikes3430 4 ปีที่แล้ว

    Thank you man, you made it simple and clear appreciate that!!!!

  • @GreenSlugg
    @GreenSlugg ปีที่แล้ว +1

    Dude! This is the best video I've seen on this subject! So incredibly helpful!!!!
    I was able to figure out (most of) my homework problem by watching this. I've just got a little more to go!

  • @skynight959
    @skynight959 2 ปีที่แล้ว

    Thanks i really appreciate it. Its really hard to understand all the explanation in the book but its actually turned out to be this simple

  • @elverfr
    @elverfr ปีที่แล้ว +2

    Earned yourself a subscriber,I'm a 1st yr comp sci student,you just taught me how to write methods,it's your vibe :) loving itttt

  • @krishansinghnegi3183
    @krishansinghnegi3183 4 ปีที่แล้ว

    Thank you very much Alex. Your videos help me a lot.

  • @teodorastoyanova3259
    @teodorastoyanova3259 4 ปีที่แล้ว

    This video helped me a lot to learn methods in Java. Thank you.

  • @aru9072
    @aru9072 3 ปีที่แล้ว +1

    I was struggling to understand this from quite a long time and finally I understood something. Thank you!

  • @satioOeinas
    @satioOeinas ปีที่แล้ว

    Great explanation for beginners! Thank you.

  • @techhub_
    @techhub_ 2 ปีที่แล้ว

    You made it super clear! Thanks man

  • @sumanthns1538
    @sumanthns1538 3 ปีที่แล้ว

    Thanks mate! Really helpful videos

  • @canerkli7037
    @canerkli7037 4 ปีที่แล้ว +9

    I honestly spent hours to find this kind of explaining on this subject. Very well explained, hats off lad

  • @trodg
    @trodg ปีที่แล้ว +1

    The way you explain things makes it so easy to learn, my professor overcomplicates everything

  • @dancingrook8553
    @dancingrook8553 2 ปีที่แล้ว

    wow methods are super super cool. glad to be learning java for hobby stuff and your videos are beyond amazing

  • @abdulrahmanansari7433
    @abdulrahmanansari7433 2 ปีที่แล้ว

    exceptionally easy explanation. Thanks!

  • @connanb5552
    @connanb5552 4 ปีที่แล้ว

    I dont usually comment on videos but your videos have been amazing so far, I usually suck at trying to pick up new concepts but I am trying to be self taught, and this has been amazing!!

  • @nataliemartin9660
    @nataliemartin9660 2 ปีที่แล้ว

    thank you so much you make this stuff seem so much easier than it does in class

  • @kolagirl7
    @kolagirl7 4 ปีที่แล้ว +2

    This was super helpful! Can you possibly do a video explaining methods and parameters?

  • @gauravyadav7233
    @gauravyadav7233 2 ปีที่แล้ว

    Thank u buddy ❤️ it's really helpful

  • @general_pepito
    @general_pepito ปีที่แล้ว

    best channel for learning to code quick

  • @benitaezeoke1568
    @benitaezeoke1568 ปีที่แล้ว

    bravo ! you did a great job ! you really helped me to understand the method very well thank you

  • @Siddharth-in7vg
    @Siddharth-in7vg 3 ปีที่แล้ว

    dude tq so much u r short videos are so helpful i m practicing for coding and u r videos make it really ez whenever i will start earning i will join u r membership plz keep it up love u

  • @bubble4770
    @bubble4770 5 ปีที่แล้ว +36

    I am a 10 grader ,and your videos are really helping me to complete my computer syllabus.

    • @alexlorenlee
      @alexlorenlee  5 ปีที่แล้ว +11

      bubble channel ayyyee that’s great I’m happy to help

    • @djpharaohoftime3200
      @djpharaohoftime3200 3 ปีที่แล้ว +4

      Congrats on getting into programing early.

    • @bubble4770
      @bubble4770 3 ปีที่แล้ว +1

      @@djpharaohoftime3200 thanks

    • @otakuworld2759
      @otakuworld2759 2 ปีที่แล้ว

      I'm in 9th and I just wanted to learn about methods, but when I started watching this video I got intetested in learning more about java. Thanks for all of it🤗

  • @tusharsuthar3
    @tusharsuthar3 4 ปีที่แล้ว

    Its just awesome explanation. The way you explain now it ll gonna stay forever in mind. Just one request can you make one more video with this method and use loop in it or with conditional statement.
    Your explanation is super fantastic.

  • @dr.pepperyoutube.trustmeit843
    @dr.pepperyoutube.trustmeit843 4 ปีที่แล้ว +3

    Thanks Richard, this video helped me quite a bit. In recent years good folks have been hard to come by, but I can say for certain that you, Walter, are one of them. Keep up the good work, David!

  • @anushkasharma169
    @anushkasharma169 2 ปีที่แล้ว

    Thanks dude ! ! You make it easier for us to understand methods ;-) .
    we love and support you from our heart ❤❤✔✔.

  • @darkscept3r293
    @darkscept3r293 2 ปีที่แล้ว

    Thank you so much for the help. Methods kinda make sense to me now

  • @Drdominguezc
    @Drdominguezc ปีที่แล้ว

    Thank you for your tutorial you are the best person explain everything for me to understand.... Again thank you!!!!!

  • @asafzilberberg6648
    @asafzilberberg6648 4 หลายเดือนก่อน

    Great explanation: simple and clear.

  • @Thegreatone1086
    @Thegreatone1086 4 ปีที่แล้ว +1

    Great explanation. Thank you.

  • @nawasfaiz6673
    @nawasfaiz6673 3 ปีที่แล้ว

    Thanks for teaching us such good way

  • @mujahidhussain461
    @mujahidhussain461 ปีที่แล้ว

    Very understandable and useful video, thankyou so much

  • @htw3323
    @htw3323 4 ปีที่แล้ว

    Thank you, I finally understand how a method works!

  • @thatgirl7650
    @thatgirl7650 2 ปีที่แล้ว +4

    My four month semester going on ... Two months had passed , two left 😶 . But hope I will learn Java in this much short time . And after finding you, I am getting the feeling that I can !

  • @kchamp1239
    @kchamp1239 4 ปีที่แล้ว +1

    Wow. that's... actually such a aa simple explanation. Damn. Thank you.

  • @starx8771
    @starx8771 5 หลายเดือนก่อน

    Thank you for the tutorial, this was so helpful!

  • @nichlasandersson2863
    @nichlasandersson2863 ปีที่แล้ว

    Thank you for this! It helped alot :)

  • @itsameciara3667
    @itsameciara3667 3 ปีที่แล้ว

    I don't think you understand how much i appreciate you

  • @leodit4007
    @leodit4007 6 หลายเดือนก่อน

    You are the GOAT bro. I didn't understand methods so easily.

  • @alexikamran7039
    @alexikamran7039 ปีที่แล้ว

    this is amazing . it easy and really helpful

  • @priskon5950
    @priskon5950 4 ปีที่แล้ว +4

    Man thank you, that video literly saved me!

  • @badsameeryt7096
    @badsameeryt7096 27 วันที่ผ่านมา

    Such an amazing video all concept clear in only 5 minutes thank u sir ❤❤

  • @sumitsonar5683
    @sumitsonar5683 3 ปีที่แล้ว

    thank you so much you explained a method in very easy way

  • @hugonegrete6325
    @hugonegrete6325 3 ปีที่แล้ว

    Super explanatory, great work keep it up!

  • @djpharaohoftime3200
    @djpharaohoftime3200 3 ปีที่แล้ว

    These videos are awesome thank you it makes java a lot easier to learn.

  • @iuliant.4137
    @iuliant.4137 4 ปีที่แล้ว

    Thank you for this! Grate stuff!

  • @davids6886
    @davids6886 4 ปีที่แล้ว +3

    AP java class is gonna be a breeze tomorrow. Thanks!!💯

  • @RobloxboyplayzMUSCLELEGENDS
    @RobloxboyplayzMUSCLELEGENDS 4 ปีที่แล้ว

    Thanks very simple and strait to the point.

  • @user-tt2th6hp8r
    @user-tt2th6hp8r 3 ปีที่แล้ว

    thank you so much for this video, i couldn't understand it, but after wanting this video i understand all about Methods. I appraciate you.

  • @burjeduro9175
    @burjeduro9175 4 ปีที่แล้ว

    Thanks! Very informative.

  • @ehkalanephaung4659
    @ehkalanephaung4659 3 ปีที่แล้ว

    Thank you so much for this video. it is very helpful.

  • @warcroft23
    @warcroft23 4 ปีที่แล้ว

    Nice explanation, Alex Lee. Thanks a lot !!!

  • @hnycrsps2658
    @hnycrsps2658 2 ปีที่แล้ว

    This is a really cool vide & really simplified things!

  • @z1no3n
    @z1no3n 3 ปีที่แล้ว

    it was helpful , thanks dude!

  • @aliciastarr7208
    @aliciastarr7208 ปีที่แล้ว

    Thank you so much for this!

  • @Cablur
    @Cablur 4 ปีที่แล้ว

    Really really awesome! Thank you so much!

  • @jeihadbaleegh6463
    @jeihadbaleegh6463 3 ปีที่แล้ว

    Thank you that's was amazing , fast , easy and clear

  • @magl1003
    @magl1003 3 ปีที่แล้ว +1

    Thank you for the tutorials! You are helping me get through my Java class! :)

  • @RelentlessSketchStudios
    @RelentlessSketchStudios 3 ปีที่แล้ว +1

    3 hours wasted in online class and now I've mastered it, thanks to you!

  • @abdullahiomar4398
    @abdullahiomar4398 4 ปีที่แล้ว +1

    Help full u re talented the way you explain thanks bro

  • @anubhutisingh609
    @anubhutisingh609 3 ปีที่แล้ว

    Thank you do much...... I have exams coming and this video was such a lifesaver... Thanks again😊💜

  • @hiblahblah45
    @hiblahblah45 2 ปีที่แล้ว +1

    THANK YOU, I love how you simplify methods. Unlike my professor.

  • @fatmabaghirova6477
    @fatmabaghirova6477 3 ปีที่แล้ว

    Thank Alex. You are perfect. Just your explanations make sense for me.

  • @RiddleRapture2930
    @RiddleRapture2930 3 ปีที่แล้ว

    Thank you
    You made methods so easy 😍😍😍

  • @hugonegrete6325
    @hugonegrete6325 3 ปีที่แล้ว

    You just earned a new sub, congrats solider.

  • @adamolesinski8130
    @adamolesinski8130 5 หลายเดือนก่อน

    Hello Alex i just start study Java in my Uni and your videos help me a lot :) thank you very much for this quality content. Below my attempt to improve your calculator app from above video by adding scanner function.
    import java.util.Scanner;
    public class Methods {
    public static void main(String[] args) {

    System.out.println("please input value A");
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    System.out.println( " your A value is " + a);
    System.out.println("please input value B");
    Scanner scan2 = new Scanner(System.in);
    int b = scan2.nextInt();
    System.out.println("your B value is" + b);

    welcome();
    multiply(a, b);
    divide(a, b);

  • @krishnanshudey3831
    @krishnanshudey3831 3 ปีที่แล้ว

    That's why when I faced some problem I visit here for your videos.

  • @fellowRaven02
    @fellowRaven02 2 ปีที่แล้ว +1

    what- I always thought that this is hard! AND MY MAN HERE EXPLAINED IT SO PERFECTLY!

  • @minhhuynh2646
    @minhhuynh2646 4 ปีที่แล้ว

    it is very helpful and easy to understand. thanks

  • @misha3837
    @misha3837 2 ปีที่แล้ว

    It was really helpful. thank you. i must say you dd really good job...🙂

  • @nidhinbabu9451
    @nidhinbabu9451 3 ปีที่แล้ว +1

    This was the "method" explanation I was looking for!... Thanks buddy!

  • @SwinkMediaHouse
    @SwinkMediaHouse 3 หลายเดือนก่อน

    This video gave me a aha moment about methods... I understand the concept even more now!

  • @pioneerlearningacademy2263
    @pioneerlearningacademy2263 3 ปีที่แล้ว

    Great Alex.. You have given too easy concept.

  • @jahadamiraslanov
    @jahadamiraslanov 2 ปีที่แล้ว

    You helped me to solve questions in my mind , thank you ALex Lee :)

  • @kaiyabou
    @kaiyabou 4 ปีที่แล้ว

    My professor just started teaching us methods but I had no idea what was going on. Honestly now I get it and methods seem like a life saver lmao.