@@FelipeDiaz-tt3zj Every person has a different method. What I do is to watch and type the code side by side. I pause it in the middle, write code and may be play with it and see what else can be done with that. I never copy the code, that works for me. Generally when I am learning a new language, I already start with a project in my mind and then watch the tutorials for straight many hours, get the syntax and start working on the project. Then I keep coming back when I need to.
More detailed code of the provided lesson: ********************************************* public class Main { // method = a block of code that is executed whenever it is called upon // Since we are calling the add(int, int) function inside the main() method which is a STATIC method, therefore, we also need to make the add() method STATIC. static int add(int x, int y) {
int z = x + y; return z; } // In the above function definition, (int x, int y) are called parameters.
// Since we are calling the hello(String, int) function inside the main() method which is a STATIC method, therefore, we also need to make the hello(String, int) method STATIC. static void hello(String name, int age) { System.out.println("Hello "+name); System.out.println("Your age is "+age); } // In the above function definition, (String name, int age) are called parameters.
// Driver Code: public static void main(String[] args) {
int x = 3; int y = 4;
// Calling method add(int , int) int z = add(x,y); // In add(x,y), x & y are called arguments. // z = 7 System.out.println(z);
// Calling method hello(String, int) hello("Pritam", 25); // Hello Pritam // Your age is 25. // In hello("Pritam", 25), "Pritam" & 25 are called an arguments. } } // Important Difference Between Argument and String. //************************************************* // The values that are declared within a function when the function is called are known as an argument. Whereas, the variables that are defined when the function is declared are known as a parameter.
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
You are so incredibly good at explaining. I wish you were my Tutor. I learned so much from your channel already. Im so grareful i found you. You are truly the best
Amazing, I don't know how to thank you for your wonderful method of teahing. This is what I wanted for my kid to learn Java, Easy and very Practical. Thank you very much!
I still don't understand, you could have just done public static int add1(int x, int y) { System.out.println(x + y); return x + y; } and write less code? or is the meaning of the return keyword to actually store values in a new variable to use it for something else?
"Wow, this coding video is absolutely fantastic! I've been following this channel for a while now, and I must say, you have been a tremendous help in clearing my doubts and enhancing my coding skills. I even watched your Python tutorial videos, which made a world of difference for me. The explanations are clear, concise, and far more engaging than what I've experienced in my university courses. Thank you so much for providing such valuable resources and making coding accessible and enjoyable for learners like me. Keep up the excellent work!"
public class Main {
public static void main(String[] args) {
// method = a block of code that is executed whenever it is called upon
int x = 3;
int y = 4;
int z = add(x,y);
System.out.println(z);
}
static int add(int x, int y) {
int z = x + y;
return z;
}
}
booba
thanks mate!
public class Main{
// method = a block of code that is executed whenever it is called upon
public static void main(String[] args) {
String name = "Bro";
int age = 21;
hello(name,age);
}
//void method
static void hello(String name, int age) {
System.out.println("Hello "+name);
System.out.println("You are "+age+" old.");
}
} Here you have the void method example master Bro provided. Best Regards.
More people should know about this series. By far the best I have seen on you tube.
I need help, how should I use this tutorial.
Should I look at the video and then copy it into the java, or at the same time as the video to do it?
@@FelipeDiaz-tt3zj Every person has a different method. What I do is to watch and type the code side by side. I pause it in the middle, write code and may be play with it and see what else can be done with that. I never copy the code, that works for me. Generally when I am learning a new language, I already start with a project in my mind and then watch the tutorials for straight many hours, get the syntax and start working on the project. Then I keep coming back when I need to.
+1
Bro, you're the best.
Your job is priceless!
"It doesn't matter what you do."
-- Bro
deep
More detailed code of the provided lesson:
*********************************************
public class Main {
// method = a block of code that is executed whenever it is called upon
// Since we are calling the add(int, int) function inside the main() method which is a STATIC method, therefore, we also need to make the add() method STATIC.
static int add(int x, int y) {
int z = x + y;
return z;
}
// In the above function definition, (int x, int y) are called parameters.
// Since we are calling the hello(String, int) function inside the main() method which is a STATIC method, therefore, we also need to make the hello(String, int) method STATIC.
static void hello(String name, int age) {
System.out.println("Hello "+name);
System.out.println("Your age is "+age);
}
// In the above function definition, (String name, int age) are called parameters.
// Driver Code:
public static void main(String[] args) {
int x = 3;
int y = 4;
// Calling method add(int , int)
int z = add(x,y);
// In add(x,y), x & y are called arguments.
// z = 7
System.out.println(z);
// Calling method hello(String, int)
hello("Pritam", 25);
// Hello Pritam
// Your age is 25.
// In hello("Pritam", 25), "Pritam" & 25 are called an arguments.
}
}
// Important Difference Between Argument and String.
//*************************************************
// The values that are declared within a function when the function is called are known as an argument. Whereas, the variables that are defined when the function is declared are known as a parameter.
thanks i needed this im watching this same video for the 6th time because i forget what method arguments and parameters every time
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
I have an exam in 12 hours and these videos will save me
Thx bro
I can count on you to get me thru the boot camp I'm currently in. Appreciate you bro!
these videos are saving my butt. I've been so lost in my coding class and you explain these concepts so simply but clearly. Thank you!
I watch your videos religiously, they're the best on UA-cam.
Sir You are a great teacher i swear the way u explains things are just mind blowing thank u for such type of playlist
You are so incredibly good at explaining. I wish you were my Tutor. I learned so much from your channel already. Im so grareful i found you. You are truly the best
Methods understood completely, 2d ArrayList used as example. 22th. Thank you, ma Bro Sensei!
Random comment to appreciate this wonderful video, God Bless you man
amazing personality, love your channel!
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
I loved the Z trick. They did not teach that in the bootcamp. It is very simple thanks
Οι μέθοδοι σε κάθε γλώσσα αντικειμενοστρεφούς προγραμματισμού, είναι πολύτιμες!
Super useful for beginners like me. Thanks Bro! Happy 2022
This is like the 10th time brocode helped me and i'm just getting started!
ikr
Amazing, I don't know how to thank you for your wonderful method of teahing. This is what I wanted for my kid to learn Java, Easy and very Practical.
Thank you very much!
You're actually really helpful thank you :)
The method in programming, allows you to reuse the code.
Realy outstanding
love your teaching
i am saving this channel. so i am a hero
You are doing an amazing job Bro 😍
pretty comprehensive explanation, thanks!
thx a lot for your job
I was trying to understand this for 2 hours today from various sources, but it seems i just needed this video🎉
Thanks bro! you're blessing for us...
Holy shit ! Take my hand Master :(( !!! I have 5 videos about this topic, but you have lightened my understanding
Thanks for the video
I must say 3 years later and this video aged like fine wine
Thank you very much
Now it is so simple. Thank you
"Bro" Why are yo so good in explaining ?
Great teaching. thanks
I AM YOUR SAVIOUR (i commented and saved you)
Bro you are breathtaking🙇♂
thank you for this course.
Bro code! Great concept! Thanks for the lessons, bro. 😎
I already learnd so much thank you
thanks Allah that i know your seriuse, you are a true legend bro!
Good sir
Cool!👍 Hope you already got static explain))
Nice
master of the universe!
good
Love it
Brilliant video thanks a lot !
great job
Super helpful videos! Thanks for making these
Thanks
This helped me so much thank you!
Thanks for explaining so well!
identico ao conceito de "codar modularizado em python", that's cool!
Incredible !
I still don't understand, you could have just done
public static int add1(int x, int y) {
System.out.println(x + y);
return x + y;
}
and write less code? or is the meaning of the return keyword to actually store values in a new variable to use it for something else?
Good content a usual. Keep up the good work!
nice
Great ♥️
great video!!
Please suggest projects in java to increase my hold in java
Nice.
Super
Thank you
Thank you so much bro, amazing job
thanks
thanks big bro
"Wow, this coding video is absolutely fantastic! I've been following this channel for a while now, and I must say, you have been a tremendous help in clearing my doubts and enhancing my coding skills. I even watched your Python tutorial videos, which made a world of difference for me. The explanations are clear, concise, and far more engaging than what I've experienced in my university courses. Thank you so much for providing such valuable resources and making coding accessible and enjoyable for learners like me. Keep up the excellent work!"
very cool 😎
Thanks, Bro
my fellow bro, you are awesome❤
I see that D&D, D&D Character Builder, and D&D Map Builder files.... It took me a few videos.... But I see it lol
is there any difference between functions and methods in java, pls?
op
Thanks Bro
We’re hoping bro that you can upload a tutorial that java connects to DB :) thankyou
thanks a lot, Bro Code you are a hero!
I dont understand the use of return
So helpful!
thank you
Ayyyy, nice!
thankyou bro👌👌
Thank you 😇
Thank you !
Bro super
Thanks, Bro! ☕ You're awesome!
nice vid
thanks bro
❤️
Very nice bro 😊❤
niceee bro
You are very nice teacher! I will listen you in your next films ^^ Maybe I don't know english so perfect but I can understand you. It's very nice :D
They're very similar to functions in C
learnt
👍
thanks bro . i watched the add to the end i hope it helps:)
thank you, Bro