Java Tutorial For Beginners 17 - Parameter passing and Returning a Value from a Method

  Рет қаралды 465,591

ProgrammingKnowledge

ProgrammingKnowledge

Күн бұрын

Пікірлер: 157
@mizanrahman7927
@mizanrahman7927 8 жыл бұрын
I have never managed to understand this concept, however you sir have made this complete. Thank you so much, If you are looking to understand parameters (why we use them), and the return type. THEN I WOULD 100% recommend this video.
@jeco3379
@jeco3379 6 жыл бұрын
THANK YOU SO MUCH TOO LAST NIGHT :* FUCK ME AGAIN
@sunnysumanth1280
@sunnysumanth1280 4 жыл бұрын
@@jeco3379 hey there 😂😂😂
@tristonboyte2163
@tristonboyte2163 5 жыл бұрын
Just wanted to say thanks man. I’ve been struggling with understanding why we even return values in methods and your reason (to access the value) really hit on point. I’m a CS major whose love for coding has dwindled going into my 4th year (I know, I’m mediocre for it being my 4th year), but ur vids have really helped me enjoy coding again. Thanks again 💯
@ProgrammingKnowledge
@ProgrammingKnowledge 10 жыл бұрын
@jeco3379
@jeco3379 6 жыл бұрын
HI DADDY ;)
@chizie2003
@chizie2003 2 ай бұрын
I sit through 2hrs of class to understand something you break down in less than 15 minutes. Easier to understand. Thank you very much
@AnuragYadav-pf2bs
@AnuragYadav-pf2bs 5 жыл бұрын
I have No prior knowledge to java But this guy made it simple to understand
@sky1976ful
@sky1976ful 8 жыл бұрын
After having watched 17 videos I must say, "Thanks Man"!!
@adnan.hafeez
@adnan.hafeez 4 жыл бұрын
wow the explanation is excellent, universities will never teach you like this. this man is great ...
@sofiyarao2063
@sofiyarao2063 8 жыл бұрын
Great work! Other than just making money you are also getting a lot of blessings from students :)
@jeco3379
@jeco3379 6 жыл бұрын
HOW ARE YOU RN? DID YOU GRADUATE!?
@VinodThakur-t6x
@VinodThakur-t6x 5 жыл бұрын
Absolutely right dear
@rehanhussan
@rehanhussan 2 жыл бұрын
where are you now?
@aura-audio
@aura-audio 5 жыл бұрын
Thank you for this video! I understand parameters better than I used to now. It was very clear and well explained.
@lovingbritt
@lovingbritt 8 жыл бұрын
omg thanks for this I'm lost in programming class
@jeco3379
@jeco3379 6 жыл бұрын
HAVE YOU FOUND YOUR WAY NOW?
@Gamerboy-gl7di
@Gamerboy-gl7di 4 жыл бұрын
@@jeco3379 no
@ClashingBrawler
@ClashingBrawler 3 жыл бұрын
It's been four years, I hope you found your way home 🏘️..
@lovingbritt
@lovingbritt 3 жыл бұрын
@@ClashingBrawler I have one year left and I'm still lost so I'm probably going to be a graphic designer when I graduate instead of a programmer 😅
@thanasisathanasi4965
@thanasisathanasi4965 9 жыл бұрын
Best video series EVER.
@jeco3379
@jeco3379 6 жыл бұрын
BEST THUMBNAIL EVER!
@BilalKhan-lw8xe
@BilalKhan-lw8xe 5 жыл бұрын
i start interact with programing since 2013 but i don't understand what is function/method, parameters, return . and now i watched this 12 mnt video and learned a lot that i could not learn in last 6 years .
@vijaydubey1734
@vijaydubey1734 8 жыл бұрын
u r a great trainer with good convincing skills
@ashveer_sinha
@ashveer_sinha 3 жыл бұрын
Finally I understood the concept here. Thank u for the giving the easiest explanation
@SmartProgramming
@SmartProgramming 6 жыл бұрын
clearly explained, it easy to learn concepts practically 👍👍
@sri74993
@sri74993 21 сағат бұрын
Thank you.. Very useful and simple explanation 😊
@nikhilmirashi7185
@nikhilmirashi7185 2 жыл бұрын
You are doing great job and your teaching also very good, you deserve a like and subscriptions brother.
@aaronmcdonald4944
@aaronmcdonald4944 4 жыл бұрын
out of all the videos it was explained best here.. thank you!
@MaxPayne909
@MaxPayne909 9 жыл бұрын
Your smoke detectors want new batteries..
@timamaclennan
@timamaclennan 7 жыл бұрын
lol xD I thought mine were needing changed! - was watching the video and was like is that my alarms, since it literally sounded like the one out in my hallway and the downstairs one was going off. It wasn't till I realized that when I paused the video and had a mastermind group that lasted an hour, that there was no beeping, then came back to this video it started again xD
@nikhilb3880
@nikhilb3880 7 жыл бұрын
How do you know it?
@os2958
@os2958 7 жыл бұрын
thanks, thought it was mine :0
@g-rod5199
@g-rod5199 5 жыл бұрын
@@timamaclennan I did the Same thing! I was like I JUST replaced all the batteries and I finally realized it!
@prestofortissimo5417
@prestofortissimo5417 5 жыл бұрын
@@timamaclennan every 15 seconds?? BEEP!!!!
@triplea0070
@triplea0070 6 жыл бұрын
ohh man finally someone who knows how to explain !!! good tutorial keep up the good work
@ryank170
@ryank170 7 жыл бұрын
Your videos make studying so much easier, thank you
@athardaif
@athardaif 4 жыл бұрын
I almost lost the hope to understand parameters .. Thank you very very much :)
@AlineSelle
@AlineSelle 7 жыл бұрын
Thank you a lot! Because of your clear and simple lessons I created my first method! huhuhuh :-) Really happy
@jww7663
@jww7663 6 жыл бұрын
Thank you. You are a very good teacher.
@fadhlanwasim
@fadhlanwasim 8 жыл бұрын
Hello and a very good day! I just need some explanation on return values, why actually we return values, and why is it important in programming? I have been following since first video, thank you:D
@littlee300
@littlee300 8 жыл бұрын
My mehters are really improving, thanks!
@niyatigadesha2413
@niyatigadesha2413 4 жыл бұрын
This was very useful. Thank You.
@sheetaldheer5954
@sheetaldheer5954 4 жыл бұрын
the videos are great and so very well explained
@programmercoding1953
@programmercoding1953 4 жыл бұрын
Sir Your so sweet because your teaching method is very good sir i request you please upload new videos hacking for learning
@alisajid5205
@alisajid5205 8 жыл бұрын
Thank you so much. it's very very easy for understanding especially for beginners Again Thanks.
@jahirulislammonir3490
@jahirulislammonir3490 9 жыл бұрын
Awesome tutorial...Masterclass....
@jeco3379
@jeco3379 6 жыл бұрын
REALLY?
@triochannel2097
@triochannel2097 6 жыл бұрын
Thanks so much. Your explanation is wonderful and amazing.
@jeco3379
@jeco3379 6 жыл бұрын
THANK YOU TOO
@Srujansujju
@Srujansujju 8 жыл бұрын
Parameters refers to the list of variables in a method declaration. So we pass arguments to methods, not parameters.
@funtasticcouple
@funtasticcouple 4 жыл бұрын
Will these videos be helpful for a fresher to attend a off-campus drive...
@gowthampraveenj4462
@gowthampraveenj4462 5 жыл бұрын
Amazing 👌😍🥰
@sathvikrachakulla
@sathvikrachakulla 9 жыл бұрын
wow that made it so easy!! can you recommend practice on this topic? Thank you in advance.
@jeco3379
@jeco3379 6 жыл бұрын
PRACTICE WITH YOUR MOM
@utkarshprakash3033
@utkarshprakash3033 6 жыл бұрын
sir Is it better to use print as method in java? Like this public class method { public static void main(String[]args){ print(" Hellow User "); print(45); int a=96; print(a); } public static void print(Object text){ System.out.println(text); } }
@XQD13200
@XQD13200 9 жыл бұрын
I Don't understand what does return a value means. What happens if you return a value ? plz answer quickly !!
@azrael2844
@azrael2844 9 жыл бұрын
+PC tips and tricks returning the value actually is using the output again in some other method inside the program , at void u cannot do that its just like using the output of one part of the machine to another part of the same machine as input , without processing it twice :D
@kevingaming6682
@kevingaming6682 5 жыл бұрын
Thank you so much you helped to to not fail AP c.s
@rajesh.singh__
@rajesh.singh__ 9 жыл бұрын
Very Good I Liked it !!!!
@jeyhunaliyev1765
@jeyhunaliyev1765 5 жыл бұрын
Great explanation thanks a lot
@FurqaanShafi
@FurqaanShafi 6 жыл бұрын
greatt stufff......easy to understand...keep up the goood work.......
@jeco3379
@jeco3379 6 жыл бұрын
KEEP UP THE JACKS
@elchinshabanov7544
@elchinshabanov7544 7 жыл бұрын
Thanks a lot ,you are a amazing teacher,very understandable. for three months I went to the teacher He only fuck up my money ,nothing else
@kingzfan2000
@kingzfan2000 5 жыл бұрын
Is he using function and method interchangeably to mean the same thing or are they two different things?
@AhmedRaza-zt8mu
@AhmedRaza-zt8mu 5 жыл бұрын
sir how to write a prototype of a method in java. sir can we use default argument in java as we used in c++
@user-tm1ix7xi1n
@user-tm1ix7xi1n 7 жыл бұрын
It was really helpful. thank you
@johncarlo9338
@johncarlo9338 4 жыл бұрын
How about different data types in the parameters? Do you have tutorial in that?
@quazimoynulhoque6376
@quazimoynulhoque6376 5 жыл бұрын
What application you are using for java.
@gabevans087
@gabevans087 7 жыл бұрын
great explanation, thanks!!!
@mistertds
@mistertds 8 жыл бұрын
you are very good is very clear
@infotube977
@infotube977 6 жыл бұрын
In later program where you did operation on the numbers in this video. For what use be '' the hello string part of the programme '' left??
@jeco3379
@jeco3379 6 жыл бұрын
WATCH THE BEST VIDEO ON YOUPORN
@himanshuagarwal6717
@himanshuagarwal6717 5 жыл бұрын
You should try to give example of passing 1d array or 2d array for making concept more understandable
@DJABA
@DJABA 5 жыл бұрын
That would only confuse people
@jeco3379
@jeco3379 6 жыл бұрын
BEST VIDEOOO EVER!!!
@conormichael_jr
@conormichael_jr 7 жыл бұрын
What's the difference of putting a variable inside the method parameter rather than declaring it inside the method? Why would you need to declare it in the parameter
@fuzelmultani2290
@fuzelmultani2290 6 жыл бұрын
Very helpful
@sirishireesha4313
@sirishireesha4313 3 жыл бұрын
I executed this prgms exactly but I got error
@niftalemtube3641
@niftalemtube3641 6 жыл бұрын
thank you sir...God bless you!!!
@jeco3379
@jeco3379 6 жыл бұрын
THANK YOU
@eshansinghai4954
@eshansinghai4954 8 жыл бұрын
which eclipse package are you using plz reply fast and i love your videos
@shadi5338
@shadi5338 7 жыл бұрын
it is said in the first video ehsan. it is Eclips neon
@fishingwithtreako
@fishingwithtreako 8 жыл бұрын
package push1; public class MyClass { public static void main(String[] args) { sayHello("Sooraj"); Add(100,200,200); int minus = Substract(500,100,300); System.out.println(minus); } public static void sayHello(String name){ System.out.println("Hello " + name); } public static void Add(int a, int b, int c){ System.out.println(a+b+c); } public static int Substract(int x, int y, int z){ return(x-y-z); } }
@DineshSharma-fz3wr
@DineshSharma-fz3wr 7 жыл бұрын
great job
@avinashgrandhi8045
@avinashgrandhi8045 4 жыл бұрын
can we take input from user using methods
@kannu5039
@kannu5039 8 жыл бұрын
is it almost same like method overloading?
@sheetaldheer5954
@sheetaldheer5954 4 жыл бұрын
can you please add a video about palindrome number and string
@edmann19592000
@edmann19592000 8 жыл бұрын
how to put return values not in return but in an output variable (pointers?)
@vaibhavagarwal7069
@vaibhavagarwal7069 7 жыл бұрын
i want to take values from user,then how should I call method?
@myfacesvlogs
@myfacesvlogs 5 жыл бұрын
Sir i have a lot of questions about return type
@khasianowebb1443
@khasianowebb1443 3 жыл бұрын
By chance I am walking through each video but putting in different values, names, etc. For some reason on this once I run my code it does not give me the space between the Hello & Name... it continues to print like this for some reason, " HelloName" and I am using the '+' symbol. I have tried to look up common issues or why this is happening but I cannot find anything, anyone have any suggestion's by chance? Thank you
@khasianowebb1443
@khasianowebb1443 3 жыл бұрын
Figured it out... Just put a space before the Name within the first statement, i.e. in IntelliJ for some reason it sets it up as, HelloName( /name : name); but a space before the name on the right side, intelliJ weird for doing this haha
@aviruparoytalukder3513
@aviruparoytalukder3513 9 жыл бұрын
Best lecture
@jeco3379
@jeco3379 6 жыл бұрын
FUCK YOU
@VARUNBANSALBCE
@VARUNBANSALBCE 5 жыл бұрын
Why void with main returns a value but not with any other method?
@kinggymsrepublic3540
@kinggymsrepublic3540 9 жыл бұрын
sr pleas teach us how to do some complex program. like menu ordering system or sign in program and many more plsss sr
@varunbansal8646
@varunbansal8646 5 жыл бұрын
why void returns value with main but with no other method?
@saikrishnaj
@saikrishnaj 8 жыл бұрын
what is the shortcut you use to write System.out.println? I could follow till syso..!!
@fishingwithtreako
@fishingwithtreako 8 жыл бұрын
+sai krishnaj Sysout + ctrl + space
@saikrishnaj
@saikrishnaj 8 жыл бұрын
Sooraj Sizon thank you so much...
@abdurrahim3283
@abdurrahim3283 7 жыл бұрын
thanks
@emilioapestegui4047
@emilioapestegui4047 8 жыл бұрын
Thanks bro. Good stuff!
@chaitanyakumar332
@chaitanyakumar332 8 жыл бұрын
sir the programs which you teach looks very simple because you are explaining a basic programs which consists of both input and out put given in the program itself,please teach us a program to do or execute a method and outputs that should come from the inputs which we give in the output regarding input example:you are saying add(200,300,400) and publicc static int add(inta,intb,intc)and the result is 900 how can we write a program forsum of 3unknown values of a,b,c which the values of a,b,c can be given in output and the result should be sum of any 3 number which we give
@stefanoalvares1247
@stefanoalvares1247 8 жыл бұрын
You declare 3 terms say a,b,c first which will be public. Then you take input for it and call your add class where it will add these 3 values. Program: import java.io.*; import java.util.*; public class add { public static int a,b,c; public static void add() { System.out.println("Addition result is:"+(a+b+c)); } public static void main(String []args) { Scanner sc=new Scanner(System.in); System.out.println("Enter 3 numbers"); a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); add(); } }
@kavithakavi917
@kavithakavi917 7 жыл бұрын
can I use add function and say hello function at the same time
@737082
@737082 7 жыл бұрын
yes
@maheswarani5485
@maheswarani5485 4 жыл бұрын
Thanks pa
@FurqaanShafi
@FurqaanShafi 6 жыл бұрын
cn u mke videos on python programming
@adrianjohn8111
@adrianjohn8111 9 жыл бұрын
great explanation ::////
@jeco3379
@jeco3379 6 жыл бұрын
THANK YOU
@fuzelmultani2290
@fuzelmultani2290 6 жыл бұрын
Plz cre a playlist of advanced java
@jeco3379
@jeco3379 6 жыл бұрын
FUCK YOU
@jackson-yh9vn
@jackson-yh9vn 8 жыл бұрын
thnx
@shankarbachanaboina3496
@shankarbachanaboina3496 3 жыл бұрын
Tq sir
@sameerrana3335
@sameerrana3335 8 жыл бұрын
where is complet core java tutorial
@chantalmyerpierre3552
@chantalmyerpierre3552 2 жыл бұрын
thank you so much for this, i now understand!
@sasmitapatrasingh9243
@sasmitapatrasingh9243 7 жыл бұрын
👍 But i want more knowledge
@justinherrera6790
@justinherrera6790 6 жыл бұрын
what is variyabul?
@jeco3379
@jeco3379 6 жыл бұрын
YOUR ASS.
@hammadtanoli7000
@hammadtanoli7000 4 жыл бұрын
we donot declare a method in java we only define it.....
@sasmitapatrasingh9243
@sasmitapatrasingh9243 7 жыл бұрын
But its awesome
@jeco3379
@jeco3379 6 жыл бұрын
LISTEN TO 0.25 SPEED!!LISTEN TO 0.25 SPEED!!
@Summer9604
@Summer9604 5 жыл бұрын
nice indian, ty bro!
@vijay-dw1bl
@vijay-dw1bl 6 жыл бұрын
Nice
@jeco3379
@jeco3379 6 жыл бұрын
THANK YOU
@jeco3379
@jeco3379 6 жыл бұрын
LISTEN TO 0.25 SPEED!!
@sarvaniharshi6469
@sarvaniharshi6469 6 жыл бұрын
can i know where is the code available is it code.com
@jeco3379
@jeco3379 6 жыл бұрын
NO GO TO YOUJIZZ
@divyanshusharma5614
@divyanshusharma5614 4 жыл бұрын
sir where you gone
@hanzfranz7739
@hanzfranz7739 6 жыл бұрын
method names should always start with a lowercase letter. 0 points.
@VishalSingh-kc1jn
@VishalSingh-kc1jn 5 жыл бұрын
Bhai advertisement ka tutorial h ky.
@diliprajmehta7080
@diliprajmehta7080 8 жыл бұрын
Why u put sayHello here
@jeco3379
@jeco3379 6 жыл бұрын
HELLO
@jithinkg9865
@jithinkg9865 7 жыл бұрын
take a deep breath and play it in 2x speed :-)
@abryan8117
@abryan8117 Жыл бұрын
❤️
@jeco3379
@jeco3379 6 жыл бұрын
LISTEN TO 0.25 SPEED!! OMGGGGGGGGGGG
Java Tutorial For Beginners 18 - Classes and Objects in Java
15:32
ProgrammingKnowledge
Рет қаралды 597 М.
Return Statement in Java #27
14:38
Alex Lee
Рет қаралды 282 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 37 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Java Tutorial For Beginners 14 - The for Statement in Java (for loops)
8:36
ProgrammingKnowledge
Рет қаралды 334 М.
Pass by Value and Pass by Reference in Java Video Tutorial
15:42
LearningLad
Рет қаралды 84 М.
Java Complete Tutorial Ep. 22 - Using Objects as Parameters
11:39
Java Tutorial For Beginners 25 - Inheritance in Java
14:14
ProgrammingKnowledge
Рет қаралды 298 М.
Java Tutorial For Beginners 8 -  IF ... ELSE Statements and Relational Operators
8:35
Parameters in Java Tutorial #28
8:44
Alex Lee
Рет қаралды 84 М.
Java object passing 🏬
5:13
Bro Code
Рет қаралды 78 М.
Methods with Return Type in Java | Java Tutorial For Beginners | Methods with Return Values
16:12
Krishna Sakinala (Automation Testing)
Рет қаралды 10 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН