Main Method In Java Tutorial #57

preview_player
Показать описание

When you click run, the code inside the main method in java gets run. This lets you control how the program behaves. The String[] args means that it can use an array of strings as arguments from the run command. For example:

java main hello dude

now args is an array with {"hello", "dude"}

I hope this helps you with the main method in java :) At first, I had no idea what String[] args was, how to pass parameters into the main method, or even what the keywords in front of the main method were.

I hope you enjoyed this main method in java tutorial! -

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

Alex Lee
Рекомендации по теме
Комментарии
Автор

I'm the type of person that really likes to take things apart, get to the bottom of them to find out how they fundamentally work, and that's the only way I feel like I can truly learn something. When something's presented to me as "That's just the way it is, don't worry about it", my brain struggles to ignore what's not explained. Thank you so much for taking the time to break down and explain things that none of my professors bothered to.

PhyNxFyre
Автор

Thank you for using layman’s terms. My computer science class is so confusing because everyone is speaking jibberish because I don’t know the technical verbiage yet. When I get tutoring they’re talking the same way and it’s so annoying. This video makes the content relatable and within reach. Thank you!

-Bloomingtales
Автор

This was really helpful! I had no idea I could pass arguments in right there on the command line

RJCMaxification
Автор

I love your channel! I’m a BIT major and I was so confused with using Java. You are really helping me understand it better. Thank you!!

miabbu
Автор

I just started and it confused me a lot, but with this I think I understand the basics.
I heard it's torture to learn Java as your first language but I already started so I'm going with it.
Thanks a ton.

yousifallous
Автор

I have spent 4 years in college none of my professors techies the way you techie you are amazing thank you bro

teddyjones
Автор

you could have done anything in the world, but you did this instead!!!
i love the way you explain it, checking what happens, if you do this or that, trying different ways and approaches, this is exactly my style to understand stuff!
i will binge watch the rest of it :)

cmag
Автор

Hey Alex, I just wanted to let you know I have been watching your tutorials for the last couples of days as I have been struggling with my COMP java course. I have my exam next week and your tutorials are making me feel more comfortable with my knowledge and my ability to pass my exam next week. I will let you know how I go ! :) But thank you very much for putting these tutorials out there, you make it very easy to understand.

annabellaphilipp
Автор

public just means that anyone can access this method/class/variable, even if its in a different package.

ariton
Автор

This guy is better than my university teacher, helps me to understand a lot of things, and who disliked his video is must be a teacher or jealous cause I don't see anything to dislike.

mahiaslam
Автор

still confusing for a beginner but i have a better understanding of what these things do. thanks so much.

adude
Автор

finished the whole playlist, totally needs more of this !!!

dullus
Автор

Just to be sure how good are your contents, not a single dislike. **Respects**

marwanepagolog
Автор

Legit have been binge watching all your vids because I dont understand a bunch of stuff and I need to work on a project lmfao.

Killer_virrusHD
Автор

It all makes sense now - so this is basically how something like a bash command handles arguments I suppose. Thanks, damn don't stop making videos like these

cinevreodata
Автор

I learned more from this than ans teacher ever could in this time lol

RabbitConfirmed
Автор

First of all Thank you so much to explain easy, and Could you please write small project and explain step by step. Thank you!

zezivishlaghi
Автор

Thank you Alex hope you come back to Java again 😀😢

madebytl
Автор

Really awesome and loved ur tutorial lot, it's really helpful, best core Java tutorial i have ever seen with practical 🙏, no word's to say...👍

hemanthk
Автор

im glad you are making videos. The other videos on youtube explaining java I just can not watch for some reason. keep it up please for us

jaccobbagwell