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; } }
@martiananomaly3 жыл бұрын
booba
@luchesegarlini2 жыл бұрын
thanks mate!
@mst7368 ай бұрын
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.
@NoahElShemy-m4y5 күн бұрын
@@mst736 thanks
@stickydamper3 жыл бұрын
More people should know about this series. By far the best I have seen on you tube.
@FelipeDiaz-tt3zj3 жыл бұрын
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?
@stickydamper3 жыл бұрын
@@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.
@cezarycezar28197 ай бұрын
+1
@raspberrybabe2711 ай бұрын
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!
@shyam.upadhyay2 жыл бұрын
"It doesn't matter what you do." -- Bro
@BroCodez2 жыл бұрын
deep
@mohamadnazirissumalgy36993 жыл бұрын
Bro, you're the best. Your job is priceless!
@pavelkvasnicka6856 Жыл бұрын
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
@jojovstojo Жыл бұрын
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.
@DrEggCake7 ай бұрын
thanks i needed this im watching this same video for the 6th time because i forget what method arguments and parameters every time
@Acid15ful2 жыл бұрын
I can count on you to get me thru the boot camp I'm currently in. Appreciate you bro!
@TheMurdok775 ай бұрын
I watch your videos religiously, they're the best on KZfaq.
@mummahadarsal37392 жыл бұрын
Sir You are a great teacher i swear the way u explains things are just mind blowing thank u for such type of playlist
@dawidmateuszbudkiewicz4938Ай бұрын
This is like the 10th time brocode helped me and i'm just getting started!
@timaya6 Жыл бұрын
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
@fryingpanm69772 ай бұрын
i am saving this channel. so i am a hero
@chaithdridi27183 жыл бұрын
You are doing an amazing job Bro 😍
@yousefsammar1764 ай бұрын
I have an exam in 12 hours and these videos will save me Thx bro
@slade88632 жыл бұрын
Random comment to appreciate this wonderful video, God Bless you man
3 ай бұрын
Bro code! Great concept! Thanks for the lessons, bro. 😎
@honoredegg2 жыл бұрын
Methods understood completely, 2d ArrayList used as example. 22th. Thank you, ma Bro Sensei!
@oguzoguz4686 Жыл бұрын
I loved the Z trick. They did not teach that in the bootcamp. It is very simple thanks
@abhijaiallgamesgamer20753 ай бұрын
I AM YOUR SAVIOUR (i commented and saved you)
@DevWithEv2 жыл бұрын
Super useful for beginners like me. Thanks Bro! Happy 2022
@Kd123343 ай бұрын
I was trying to understand this for 2 hours today from various sources, but it seems i just needed this video🎉
@g6z192 жыл бұрын
You're actually really helpful thank you :)
@mehranabbasi8248 Жыл бұрын
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!
@gamerkiplaysss2 жыл бұрын
amazing personality, love your channel!
@shriyarastogi1-jv1mfАй бұрын
Thanks bro! you're blessing for us...
@nikitassouvatzis1928 Жыл бұрын
Οι μέθοδοι σε κάθε γλώσσα αντικειμενοστρεφούς προγραμματισμού, είναι πολύτιμες!
@kirillutsenko93062 жыл бұрын
thx a lot for your job
@fredericoamigo2 жыл бұрын
Good content a usual. Keep up the good work!
@richardnunley76816 ай бұрын
This helped me so much thank you!
@theximera13 Жыл бұрын
pretty comprehensive explanation, thanks!
@samirkarki8880 Жыл бұрын
"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!"
@victortruong1524 Жыл бұрын
Holy shit ! Take my hand Master :(( !!! I have 5 videos about this topic, but you have lightened my understanding
@yousifshm2 жыл бұрын
thanks Allah that i know your seriuse, you are a true legend bro!
@anjapietralla57677 ай бұрын
I already learnd so much thank you
@12bradleyd3 жыл бұрын
Super helpful videos! Thanks for making these
@bartomiejsniadach57952 жыл бұрын
Now it is so simple. Thank you
@medjl60833 жыл бұрын
The method in programming, allows you to reuse the code.
@zahidbond2 жыл бұрын
Bro you are breathtaking🙇♂
@technicalresi54516 ай бұрын
Very nice bro 😊❤
@ligdjumvidja82945 ай бұрын
Brilliant video thanks a lot !
@ThomasTheThermonuclearBomb2 жыл бұрын
Thanks for explaining so well!
@marcosdidierdrogbachagaslo286 Жыл бұрын
identico ao conceito de "codar modularizado em python", that's cool!
@user-zq6yx7of5f Жыл бұрын
Thank you very much
@ktos21442 жыл бұрын
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
@user-wb7zv4fr4z Жыл бұрын
thank you for this course.
@diegocatez71812 жыл бұрын
Cool!👍 Hope you already got static explain))
@amzie8412 Жыл бұрын
Thx bro you are our sun tzu 🙏
@ahmadfares3242 жыл бұрын
my fellow bro, you are awesome❤
@HamedAthari2 жыл бұрын
love your teaching
@sakalansnow6579 Жыл бұрын
great job
@jaylordjl63373 жыл бұрын
We’re hoping bro that you can upload a tutorial that java connects to DB :) thankyou
@moumenzineb6672 Жыл бұрын
Thank you so much bro, amazing job
@robertalexandermendezfamil81032 жыл бұрын
thanks a lot, Bro Code you are a hero!
@ardcodelover Жыл бұрын
Good sir
@rownakmallick24264 ай бұрын
great video!!
@cesara97472 жыл бұрын
master of the universe!
@percivalgebashe4376 Жыл бұрын
Nice
@ardcodelover Жыл бұрын
Realy outstanding
@anatolisavin31553 жыл бұрын
will you ever teach spring ?
@dllm3tommy74110 ай бұрын
Thanks for the video
@samankucher51172 жыл бұрын
thanks bro . i watched the add to the end i hope it helps:)
@praveenbalajikalla-ng6mx5 ай бұрын
niceee bro
@danny.30363 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@tonytonychopper452510 ай бұрын
nice
@Mey_xos2 жыл бұрын
Super
@saeedajax47642 жыл бұрын
Great teaching. thanks
@mohamedelfadli3125 Жыл бұрын
is there any difference between functions and methods in java, pls?
@soumelee5661 Жыл бұрын
nice vid
@brobroo6154 Жыл бұрын
good
@Criticizeer Жыл бұрын
op
@diabetes11919 ай бұрын
i like the part where he explains methods in java
@eugenezuev73494 ай бұрын
thank you, Bro
@gamesandsoftwares14412 жыл бұрын
doing my part for the youtube gods
@cherry628011 ай бұрын
thankyou bro👌👌
@carlosromo60542 ай бұрын
done (the hero stuff)
@andycadcam22652 жыл бұрын
Incredible !
@yevgenomelchenko732 Жыл бұрын
Thanks Bro
@TheEvertonDias Жыл бұрын
Thanks, bro!
@mihriomar5158 Жыл бұрын
Thank you 😇
@sairos40572 жыл бұрын
big bro
@jaisuperawesome2 жыл бұрын
Is this the same thing as Function in python?
@rohmanatasi17719 ай бұрын
yes,but you probably know by now
@wallstreetbets77412 жыл бұрын
learnt
@MrLoser-ks2xn2 жыл бұрын
Thanks
@ibrahimylmaz83782 жыл бұрын
thanks bro
@__joshplays.3 ай бұрын
thanks
@bekturasanbekov1979 Жыл бұрын
thx 4 vid bro !
@dalv8749 Жыл бұрын
System.out.println(Ty Bro);
@gagandwaz11582 жыл бұрын
Thank you bro :)
@rushikesh-vk3po Жыл бұрын
6:42 return type
@noah773 жыл бұрын
Ayyyy, nice!
@nirnoychatterjee7908 Жыл бұрын
Please suggest projects in java to increase my hold in java