Java Programming Tutorial 02 - Adding Parameters to a Method & Returning Values

  Рет қаралды 116,294

Math and Science

Math and Science

Күн бұрын

Пікірлер: 73
@ashrafmugalli
@ashrafmugalli 3 жыл бұрын
This is the only java Methods tutorial on youtube that actually explains it really really well. Seriously the more videos i was watching on methods just made me even more confused. This is an amazing tutorial i fully understand the basics of methods thanks to you.
@aprishaz3962
@aprishaz3962 3 жыл бұрын
I'm a beginner in the computer world and I've been trying to learn Java on and off for 14 months. Most of this time, I've felt underwater without really understanding completely. Now, I'm super excited! You speak my language!! I can breathe now!
@Joseph-hw5nb
@Joseph-hw5nb 6 жыл бұрын
Thanks so much, you made me regain confidence in a 24 minute video than lose it all (and feel stupid) with a uni lecturer trying to explain this in 2hrs
@mohammadaminelahimoghadam3312
@mohammadaminelahimoghadam3312 3 жыл бұрын
dude I know.... Bach. IT is the most stupid thing one can does in uni....
@hussainkhalfan7075
@hussainkhalfan7075 4 жыл бұрын
In comparison with all the other java tutorials out there, you explain everything thoroughly, in a way that a person who hasn't touched java before would be able to understand by using general terms and not 'technical'. Very well done, thank you.
@jasonkennethrosales6249
@jasonkennethrosales6249 4 жыл бұрын
Thank you! You explained this better than my teacher.
@MathAndScience
@MathAndScience 4 жыл бұрын
Awesome thanks!
@hanf4415
@hanf4415 3 жыл бұрын
I don't know another way to say THANK YOU. But, THANK YOU a thousand times. Your explanation on part 14:41 is what saved me from quitting.
@clairechen8258
@clairechen8258 3 жыл бұрын
This is amazing Jason! Thanks a ton! I just regained my confidence of learning programming/Java. A good teacher really makes a huge difference. THANK YOU!
@andreyyyyy-r3k
@andreyyyyy-r3k Жыл бұрын
I studied this for 3 years at the university, after graduation I didn't know anything. This man taught me everything more.❤
@justuspfit
@justuspfit Жыл бұрын
love your videos dude. just started watching today. way better than my class.
@mohammadfarhat3933
@mohammadfarhat3933 3 жыл бұрын
you made my life easier thanks for the 2 videos you've made
@alexhudson-
@alexhudson- 2 жыл бұрын
I've watched this video maybe 7 or 8 times now and I'm finally getting it.
@Awesomepunk45
@Awesomepunk45 4 жыл бұрын
Please keep teaching the newbie community! Love your videos. :)
@Itzlonzo
@Itzlonzo 2 жыл бұрын
Couldn't have explained it any better... you make programming easier and more fun! thank you for this tutorial.
@meatball179
@meatball179 3 жыл бұрын
thank you for your video, I finaly understand why I had so many problems with my code ... nobody before was able to explain to me how exactly this works, I guess they all know it so well they do not understand why people that start have no clue why if you declare a string at the beginning of the function and during you get int as a result what is the problem ... so thank you you have made my day
@jujuicetin
@jujuicetin 3 жыл бұрын
I learn so much from you each time I watch your videos, thanks!
@MyBinaryLife
@MyBinaryLife 4 жыл бұрын
why is it int num1 and then when you pass it to the next method as a parameter its suddenly int a, how does it know what you mean?
@pendago8484
@pendago8484 Жыл бұрын
Num1 = 7, it is 7 that is passed into the method, so a = 7.
@teachernewteacher1944
@teachernewteacher1944 4 жыл бұрын
Great tutorial. Very clear explanation of this topic. In this short period of time I've learnt A LOT. Thanks to instructor.
@aaronpeters5058
@aaronpeters5058 4 жыл бұрын
his is very helpful for me being decently new to methods and I know it will help other people who are also new to doing methods and java in general...
@hc8797
@hc8797 4 жыл бұрын
I mixed up in int a num1=11 and then in another method you used as an int a . Please explain it
@mex9547
@mex9547 2 жыл бұрын
Truly appreciate the clarity these things are explained. I feel confident that I will be successful in my classes. God bless!!!
@matthewjohnson4935
@matthewjohnson4935 Жыл бұрын
Bro was really struggling (skull emoji)
@XDwfoxface
@XDwfoxface 3 жыл бұрын
ive been learning online but my courses dont slow down to explain how every word and symbol works. Watching this gives me a much better mental image of what's going on, it's beginning to click. thanks a bunch
@anonymouse5508
@anonymouse5508 Жыл бұрын
Thank you so much! You the only one explains it very well.
@matthewjohnson4935
@matthewjohnson4935 Жыл бұрын
Bro really had to look at a tutorial for this easy shit (skull emoji)
@mdg8037
@mdg8037 4 жыл бұрын
how does it know that "int a" below = "int num" above?
@tacefairy
@tacefairy 3 жыл бұрын
i think it's when you call multNumbers in you main method, then the program can sub "int num" for "a", but because you've called it to do that
@bachash5274
@bachash5274 4 жыл бұрын
Thank you for the stunning demonstration. It's been really helpful and informative as well.
@faaraxgees9588
@faaraxgees9588 4 жыл бұрын
i just want to say you are awesome Thank you. you are talented programmer
@dulnar8672
@dulnar8672 3 жыл бұрын
Very friendly explanation for new programmers like me, Thank you !
@ethanfriend1717
@ethanfriend1717 3 жыл бұрын
I actually love you. Thank you for this.
@mihriomar5158
@mihriomar5158 Жыл бұрын
Thank you so much !!!!! Your video helped me a lot
@stephendavol5589
@stephendavol5589 Жыл бұрын
Excellent video! Thanks
@aboodaldemasi3468
@aboodaldemasi3468 2 жыл бұрын
1- Define method that will receive two parameters which are: Salary in dollar as double Dollar to NIS (shekel) rat as double This function will return the scary in NIS (shekel) 2- pass this parameters to the defined function nd print the result Salary -> 650 Dollar to shekel -> 3.5
@rahwee_khum
@rahwee_khum 5 жыл бұрын
You know what, You are awesome . Your tutorial is great.
@MathAndScience
@MathAndScience 5 жыл бұрын
So happy you liked it! Jason, MathAndScience.com
@elimyu
@elimyu 5 жыл бұрын
I love this video it has clarfied so many things!
@mohammadkhavari6443
@mohammadkhavari6443 5 жыл бұрын
you are God of teaching!
@MathAndScience
@MathAndScience 5 жыл бұрын
Thank you so much!
@ThePandimonium
@ThePandimonium 2 жыл бұрын
Why does this not work when using custom argument data types?
@mr.guyman7404
@mr.guyman7404 2 жыл бұрын
ive been trying to create a new method to return and recieve a double type variable and for some reason i cannot get it to work.
@colewilkie
@colewilkie 4 жыл бұрын
Hi, My program is throwing this error, can you help? Customer.java:108: error: invalid method declaration; return type required customer(String firstNameIn, String lastNameIn){ ^ 1 error
@jonmarsh7914
@jonmarsh7914 4 жыл бұрын
i dont understand how (int a) is also 11, when it is called num1 underneath the main method. why is it given two different argument names? num1 = 11, which also is what int a is?
@JAPerson34
@JAPerson34 4 жыл бұрын
I was going to ask the same question but see 4 others already did. Thanks to Cheese Cake for their answer although I still don't understand. I keep getting stuck and switching tutorials. Each tutorial takes me further. My advice to everyone who gets stuck is to keep switching tutorials. Each tutor explains things different. Just have to find the one that gets you past the part you are stuck on.
@bz3086
@bz3086 2 жыл бұрын
JAP, I've believed for a long while that coders don't really want anyone outside their society to "fully" understand coding. Just like the medieval elite reserved reading & writing for themselves and not the peasants. The more you know 👍
@RamentooSpicy
@RamentooSpicy 4 жыл бұрын
I'm just starting in java, So can I set the variable outside of the main method so I can use it in another method? What I'm trying to do is get the value of the variable from the Main method then go to the other method to compute then go back again to the main method to display the answer.
@SandraGarcia-xg1ih
@SandraGarcia-xg1ih 3 жыл бұрын
Is this the same way to do a sum on a chart?
@unknownzodiac9134
@unknownzodiac9134 2 жыл бұрын
Thank for this video!
@ddchannel6266
@ddchannel6266 4 жыл бұрын
Extremely informative, thanks a lot and god bless
@osisioguukachi9513
@osisioguukachi9513 6 жыл бұрын
Thanks guys. You guys are good!!
@nightslasher9384
@nightslasher9384 2 жыл бұрын
What do you mean return again?
@mfuad2126
@mfuad2126 4 жыл бұрын
why are the names of the parameters different? in the main method its num1 but in the other method its int a
@floraniyigena7
@floraniyigena7 6 жыл бұрын
You sir, are awesome !! thank you! i am now a subscriber !
@alexpineda1384
@alexpineda1384 4 жыл бұрын
@Math and Science Hey Jason, this has been a huge help. First time learning Java and it has been GREAT! Quick question: Is it okay to declare the same variable names in your main method as in the other "public static int" methods? For example, you refer to "num1" as "int a" when passing the parameter. In your experience, would it be a good habit to use "num1" as your parameter in the "int" method? Thanks again!
@kriskupiec4361
@kriskupiec4361 6 жыл бұрын
really great job amaizing tutorial
@zayel1143
@zayel1143 5 жыл бұрын
It was so helpful and wide, Thanks
@TeeRMN
@TeeRMN 4 жыл бұрын
This was so great, thank you
@anthonyleon6576
@anthonyleon6576 4 жыл бұрын
Thanks for the help man
@ma8969
@ma8969 2 жыл бұрын
thank you
@jemschaudhary5922
@jemschaudhary5922 4 жыл бұрын
GREAT !!! very helpful...
@michaljurica9642
@michaljurica9642 3 жыл бұрын
Totally recomended :)
@anonymouskevin6558
@anonymouskevin6558 6 жыл бұрын
great work,thanks a lot!
@lisamari8147
@lisamari8147 4 жыл бұрын
thanks a lot.
@4_nabarunbhattacharya140
@4_nabarunbhattacharya140 4 жыл бұрын
1. A class named Arithmetic with a method named add that takes integers as parameters and returns an integer denoting their sum. 2. A class named Adder that inherits from a superclass named Arithmetic. Your classes should not be be . Input Format You are not responsible for reading any input from stdin; a locked code stub will test your submission by calling the add method on an Adder object and passing it integer parameters. Output Format You are not responsible for printing anything to stdout. Your add method must return the sum of its parameters. Sample Output The main method in the Solution class above should print the following: My superclass is: Arithmetic 42 13 20
@ejan769
@ejan769 5 жыл бұрын
nice!!
@hc8797
@hc8797 4 жыл бұрын
@ math and science
@talibhussan4171
@talibhussan4171 3 жыл бұрын
Paper
@killmill3420
@killmill3420 3 жыл бұрын
too difficult explained
Java Programming Tutorial - 03 - Introduction to Classes & Objects
12:14
Math and Science
Рет қаралды 40 М.
Java Programming Tutorial - 01 - Introduction To Methods
20:21
Math and Science
Рет қаралды 173 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Return Statement in Java #27
14:38
Alex Lee
Рет қаралды 285 М.
Java Programming Tutorial - 10 - Adding a Constructor to a Class
16:47
Math and Science
Рет қаралды 46 М.
Java Programming Tutorial - 07 - Adding a Method to a Class
11:09
Math and Science
Рет қаралды 59 М.
Java Programming Tutorial - 08 - Returning a Value from a Class Method
10:15
Java methods 📞
11:05
Bro Code
Рет қаралды 159 М.
Java Programming Tutorial 09 - Class Methods with Parameters
10:32
Math and Science
Рет қаралды 32 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 681 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН