+dtfyg Liao In public static void main(String args[]) Public part is the access modifier. It states that where the function can be used. Its like facebook privacy. If you put it public then everyone can see the post. So if function is public then that can be used by any class or package. Static (I am not really clear about it) I think it means function will compile first. As in first a static function then any other Void is the data type / return type. In case of Void data type. Function will NOT return ANY value at all. main is the main function of program ( lol ) and without it a java program cannot run ( String args [] ) is the argument given to main. Its an array type as you can see. It contains command line arguments (I don't know much about this one either)
+Desmond Miles I have some questions that I need answered if I want to understand data types: How important is data types? What difference does void data type make compared to others? pros cons? Why is it significant that functions written inside a void data type will not return any value? Can you give me an example of why you want a function to return a value?
+DefenderX Sure thing. Answer 1: On a scale of 1 to 10. Where 10 being really important. I believe data types would get a rating of 9 if not 10. And that because computer (compiler) doesn't knows what kind of data you will be using before you actually insert anything. So, you have to tell the computer yourself that if you will be inserting an integer type data or string or something. Because we are indeed teaching / dictating the computer what to do. Answer 2: Well, for one void means nothing, take its literal meaning here. And it can only be used with methods (functions) so, its not really a data type but a return type. You might find a lot of people stating that its neither a data type and nor a return type and that is because its meaning can change with different programming languages, I am taking a general definition into consideration here. And well, that is the reason it cannot be compared with other data types like int or float or String or char because their working is different. Because they can be both data types & return types. Answer 3: Well, when one defines a function the compiler expects it to return a value. An ideal function would be something like this: public int fun() { // code return something; } But by using void return type we can tell the compiler that no we don't want to return anything, we just want to perform some operations in that function is all. Answer 4: I can give you a small example: class A { public static void main (string [] args) { int ans_1, ans_2, ans_3; B ob = new B(); ans_1 = cal(10); ans_2 = cal(20); ans_3 = cal(50); System.out.println("Answers are below: "); System.out.println("Answer 1 : " + ans_1); System.out.println("Answer 2 : " + ans_2); System.out.println("Answer 3 : " + ans_3); } } class B { public int cal(int y) { int x = 10; return x + y; } } In the above function 'cal' we have done some processing and then we are returning some value which will be used by the variables to which the value is being returned to. We are doing this because, the same lines of code would be required with all three variables. And we don't want to repeat the same code every-time and that is why every-time we want to perform a similar task we simply call a function where the processing is done and from where a value is returned. This was a small example but in real world situation usually functions are really big and we have to perform a lot of operations and that is why we prefer making a general function which is take care of most of our processing needs and then return a simple value for us. _______________________________________________________________________________________________________ I hope my answers were simple enough and were not.... well... boring lol. Anyway, feel free to ask any more questions ^_^
I am from Germany and I searched so long for a good Java Tutorial in German, but I didn't understood anything. And in this Tutorial I understand EVERYTHING! :)
i wouldnt advice it.. the more you type it the more u remember.. and that will be better for you. once you are sure u have mastered it then you can go ahead and copy paste like bucky :)
I don't know typing with keeping hands at right position but I am a web developer designer and a java programmer all because of Bucky I love him so much. I can't explain I want to support him because he did really good job in making the education free. Its one man!!!! the whole world is learning from him..
no, it was really shitty. if you want to make fun of someone make fun of yourself. the cougar comment was totally misogynistic. or, and it's just a thought, take the five extra seconds you would need to find an example that doesn't require insulting anyone. you seem like a smart guy. i'm sure you can handle it.
Thanks man.I made my first reasonable program with your help.5 classes-1 main 4 others 99 lines of code.A calculator with 4 math formulas + - * /.Thanks man
Bucky Roberts,Sir do you understand how inspirational your tutorials are?You make Programming languages so understandable,that every person looking to code through your videos starts to love coding. I belong to that clan of people.Thank you so much Sir.Keep making such videos because these videos are super productive,and yet gain they inspire us a lot. Thanks again.
I'd disagree. It's fun. Me being a human being, I appreciate the many hours of entertainment it has brought me. With your attitude, everything is a waste of time.
Dude can i just say, you are a legend. I really hope that someone high up in the IT world has spotted you and given you a job. Loving the videos, nice work, you have helped me to get my head around things that my International lecturers cant quite explain clearly. Thanks.
OMG Thank you i subbed to you im doing this so i can learn how to create 3D games and to create plugins for minecraft and so farrr I UNDERSTAND EVERYTHING AND REMEMBERED UP TO RIGHT HERE THX XD
These tutorials are great but the "if" statements are getting errors EVERY time and I am following what you do EXACTLY. I've watched this and the previous video many times and done it over and over, I always get errors.
using an command line(cmd) with any of words,notepad any thing,just remember that computer doesn't known to compile the program continusly after making some changes so,best way to compile is by starting with 'javac name of file.java' as u know and yeah "thenewboston" is one and only one best person who is explaining it well,carry on same and mae it more easy
not only do I learn lots from your tutorials, they are also funny sometimes haha! I still remember that c++ tutorial where you got some mcshake stock in your throat lol. KEEP THE GOOD WORK!
it might have a british keyboard on it but i was just saying that mine is britsh and that is where it is because he said it was someware else and i assume he is on an American keyboard
Bucky, you should use html and make a dating site... You seem to know a lot about dating... LOL! P.S. Did you ever date a 99 year old girl when you were 8?
To an extent, I agree, some kids do want to make somthing, for nothing (In this case time). But some of us are actually interested. I myself want to do game design for a living, and I am 13. I have my mind absolutely set on doing programming. I will watch this whole playlist including the intermediate, because I have my mindset. Just because we are younger does not mean our "Interests" will last for a day or two then we will get bored. I have done programming for a year and I am not bored.
Really you are a very good teacher .I have no any programing knowledge than also I can understand this video very well . Thanks for this video Its really very helpful for me or a person who have no IT background
Nice tutorials Bucky! Lets see if I can get all the way to number 87. Some of your comments crack me up, 0.39 - 0.48 made me laugh out loud :))). Seriously though, the 10 tutorials I've looked at so far are really good. Thanks!
import java.util.Scanner;class apples{ public static void main(String args[]){ Scanner bucky = new Scanner(System.in); int boy ,girl; System.out.println("Enter the boy age : "); boy = bucky.nextInt(); System.out.println("Enter girl age: "); girl = bucky.nextInt(); if (boy >= 18 && girl > 21 ) { System.out.println("You can Enter and fuck ya !"); } else { System.out.println("Oops You cant Fuck !"); } } }:P
Couldn't have said it better myself. Age doesn't mean much other than that you are interested in things most people at that age may or may not be interested in. In the end anyone is capable of learning despite age.
Way to crush his dreams man... I'm here because of Minecraft, but that doesn't mean I will give up. I got all the way to part 68 in this series and then took a break from programming, so now i'm refreshing my memory with the basic before I continue to the intermediate series.
Awesome. Watching your first 10 videos i'm already ahead of my whole class. I'mma practice the first 11 videos over the next few weeks then I'll move on =D.
Your Tutorials are really helpful and by the way my english is not good but i can understand every Tutorial of yours because explain slowly and really pretty nice
wow im so proud over myself :) i combined this with the user input tutorial and made a program where it asks u how old u are and then you type it in the console thing instead of in the code itself :)
import java.util.*; class apples{ public static void main(String args[]){ Scanner agegetter= new Scanner(System.in); int boy, girl; System.out.println("What's the boys age"); boy= agegetter.nextInt(); System.out.println("What's the girls age"); girl = agegetter.nextInt();
this is a great way to read over notes because i can never retain information from a book, and i believe that they are called styles or styluses instead of pipes but i could be wrong.
@plopthepspking Java uses "short-circuit evaluation" for the OR operator. This means that if the first one is true, there is no need to evaluate the second condition, because it already knows that at least one is true. If you want to do something if exactly one of the two conditions is true, you can use the XOR operator, which is a ^ sign.
Sometimes you need an answer to never give a decimal. For instance, you can't cut people into pieces when you want to fit a certain amount of people on a bus. Use modulars % to get remainders. Also, if you have a GIGANTIC project with your company, doubles slow your processing of the code.
Don't listen to these people in the comments, they don't know what they are talking about, I have already put this far into the tutorial in use and am making a text adventure. use java for whatever you want. Im sure Notch got all sorts of stuff like that when he was learning to code java.
hey everyone and bucky for future reference... for system output you can just type "syso", then press "ctrl+space" and it will automatically enter the line.
These tutorials are so good. Im actually learning because he explains more slowly than other people.
+Alberto Velez No he just explains one thing at a time though I still don't know what public static void main(String args[]) means
+dtfyg Liao In public static void main(String args[])
Public part is the access modifier. It states that where the function can be used. Its like facebook privacy. If you put it public then everyone can see the post. So if function is public then that can be used by any class or package.
Static (I am not really clear about it)
I think it means function will compile first. As in first a static function then any other
Void is the data type / return type. In case of Void data type. Function will NOT return ANY value at all.
main is the main function of program ( lol ) and without it a java program cannot run
( String args [] ) is the argument given to main. Its an array type as you can see. It contains command line arguments (I don't know much about this one either)
Yes me tow
+Desmond Miles
I have some questions that I need answered if I want to understand data types:
How important is data types?
What difference does void data type make compared to others? pros cons?
Why is it significant that functions written inside a void data type will not return any value?
Can you give me an example of why you want a function to return a value?
+DefenderX Sure thing.
Answer 1:
On a scale of 1 to 10. Where 10 being really important. I believe data types would get a rating of 9 if not 10. And that because computer (compiler) doesn't knows what kind of data you will be using before you actually insert anything.
So, you have to tell the computer yourself that if you will be inserting an integer type data or string or something. Because we are indeed teaching / dictating the computer what to do.
Answer 2:
Well, for one void means nothing, take its literal meaning here. And it can only be used with methods (functions) so, its not really a data type but a return type. You might find a lot of people stating that its neither a data type and nor a return type and that is because its meaning can change with different programming languages, I am taking a general definition into consideration here.
And well, that is the reason it cannot be compared with other data types like int or float or String or char because their working is different. Because they can be both data types & return types.
Answer 3:
Well, when one defines a function the compiler expects it to return a value. An ideal function would be something like this:
public int fun()
{
// code
return something;
}
But by using void return type we can tell the compiler that no we don't want to return anything, we just want to perform some operations in that function is all.
Answer 4:
I can give you a small example:
class A
{
public static void main (string [] args)
{
int ans_1, ans_2, ans_3;
B ob = new B();
ans_1 = cal(10);
ans_2 = cal(20);
ans_3 = cal(50);
System.out.println("Answers are below: ");
System.out.println("Answer 1 : " + ans_1);
System.out.println("Answer 2 : " + ans_2);
System.out.println("Answer 3 : " + ans_3);
}
}
class B
{
public int cal(int y)
{
int x = 10;
return x + y;
}
}
In the above function 'cal' we have done some processing and then we are returning some value which will be used by the variables to which the value is being returned to.
We are doing this because, the same lines of code would be required with all three variables. And we don't want to repeat the same code every-time and that is why every-time we want to perform a similar task we simply call a function where the processing is done and from where a value is returned. This was a small example but in real world situation usually functions are really big and we have to perform a lot of operations and that is why we prefer making a general function which is take care of most of our processing needs and then return a simple value for us.
_______________________________________________________________________________________________________
I hope my answers were simple enough and were not.... well... boring lol.
Anyway, feel free to ask any more questions ^_^
Crazy how this video is from 2009 and its still getting used in schools today. My teacher has us watch these and its pretty helpful
Yup.. 3 years after this comment and we are still learning off of this guy
@@emeraudex599 3 weeks after and I'm still learning
@@bestblackpeoplevine7907 11 hours after lol
so your teacher is making you guys watch dating videos?
i bet your teacher loves old cougars
he said, "girl = 68, should be an old cougar."
I'm dead!
I actually paused the video and laughed my ass off and then I searched for this comment! Hahaha!
@@ABC-kw9te I did the same, haha!
Same here haha
girl++; //XDDD
What is cougar
I am from Germany and I searched so long for a good Java Tutorial in German, but I didn't understood anything. And in this Tutorial I understand EVERYTHING! :)
Just type sysout and press ctrl and space to turn it into System.out.println();
Thanks!
adam o brien nice trick, thx!
+adam o brien
type main and press ctrl+spacebar to get public static void main(String args [])
i wouldnt advice it.. the more you type it the more u remember.. and that will be better for you. once you are sure u have mastered it then you can go ahead and copy paste like bucky :)
corey 7 that's probably the best advice, I was just saying it to let people know but I get where your coming from. :)
I have never laughed in a programming tutorial, ever. Old Cougar.
60 year old boy
4 year old girl
"You can enter"
Moshi Moshi FBI desu~
FBI has joined the server
But there is an and operator
Someone pls call the cops...
I don't know typing with keeping hands at right position but I am a web developer designer and a java programmer all because of Bucky
I love him so much. I can't explain
I want to support him because he did really good job in making the education free.
Its one man!!!! the whole world is learning from him..
Im really enjoying these tutz. You are teaching me leaps and bounds over books or online courses. I just wanted to thank you for all your hard work.
2021 these videos are still better than the lectures uploaded by my college professor
Girl - 68 //(old cougar) - best comment ever lol
System.out.println("Your tutorials rock !");
Nerd :P
that one actually had me chuckling
too young is funnier
no, it was really shitty. if you want to make fun of someone make fun of yourself. the cougar comment was totally misogynistic.
or, and it's just a thought, take the five extra seconds you would need to find an example that doesn't require insulting anyone. you seem like a smart guy. i'm sure you can handle it.
stop being so salty its a joke, before he even said it he said no offense. (Just chill).
Thanks man.I made my first reasonable program with your help.5 classes-1 main 4 others
99 lines of code.A calculator with 4 math formulas + - * /.Thanks man
these tutorials are so good, i actually have fun learning java. GREAT JOB :D
Bucky Roberts,Sir do you understand how inspirational your tutorials are?You make Programming languages so understandable,that every person looking to code through your videos starts to love coding.
I belong to that clan of people.Thank you so much Sir.Keep making such videos because these videos are super productive,and yet gain they inspire us a lot.
Thanks again.
I think im addicted to these java series its 3;10 am at my place still watching... Well its at least productive :)
Hi its been 3 years... how much have you learned?
These tutorials really are a great start! With your help, learning the languages is fun and becomes more easy. Thank you for all your support and help
Logic gates are familiar to me because of redstone in Minecraft XD And they said it was a waste of time...I THINK NOT!
Same for me ;D
Me and about half my AP Computer Science class said the same thing on the first day of the semester XD
I'd disagree. It's fun. Me being a human being, I appreciate the many hours of entertainment it has brought me. With your attitude, everything is a waste of time.
Alex Wiser me too XD
Alex Wiser did four people just miss that joke? OR am I crazy?
You actually make this fun because you explain it so simply. It makes me feel like I'm smart. XD
Bucky rules, where else can I get a tutorial on Young Bucks and Old Cougars while getting my Java learn on.. thnx!!!
Dude can i just say, you are a legend. I really hope that someone high up in the IT world has spotted you and given you a job.
Loving the videos, nice work, you have helped me to get my head around things that my International lecturers cant quite explain clearly.
Thanks.
how can I use the pipes?
Alt Gr + 6 (above your keyboard) i think
@@nekoboss1910 you are kinda late
@@mayo4507 *very*
@@LateQuickVibes only 8 years
In 2024 you're still helping and thankyou for such flexible course.
Watching this in 2016
In 2017 Mr.Sins.
in 2018
good for you all..
I installed it on my netbook, didn't take too long and it let's you play around with the code along with him, very helpful.
OMG Thank you i subbed to you im doing this so i can learn how to create 3D games and to create plugins for minecraft and so farrr I UNDERSTAND EVERYTHING AND REMEMBERED UP TO RIGHT HERE THX XD
This series so far has been extremely easy to follow along with, and I am actually retaining the information. You are an amzazing teacher!
im using these vids for my exam lol
Here in 2023, thank you for your service 🙏🏽
These tutorials are great but the "if" statements are getting errors EVERY time and I am following what you do EXACTLY. I've watched this and the previous video many times and done it over and over, I always get errors.
Have you solved it yet?
@@scooby-dooafterlife6969 you're 9 years late my guy
@@josephgoebbels9027 so you didn't solved it...
@@josephgoebbels9027 did you solve yet ?
using an command line(cmd) with any of words,notepad any thing,just remember that computer doesn't known to compile the program continusly after making some changes so,best way to compile is by starting with 'javac name of file.java' as u know
and yeah "thenewboston" is one and only one best person who is explaining it well,carry on same and mae it more easy
old cougar XD
not only do I learn lots from your tutorials, they are also funny sometimes haha! I still remember that c++ tutorial where you got some mcshake stock in your throat lol. KEEP THE GOOD WORK!
On British keyboards the | is SHIFT + \
TarriestPython I'm usa and it's the same on my laptop.
it might have a british keyboard on it but i was just saying that mine is britsh and that is where it is because he said it was someware else and i assume he is on an American keyboard
I can't believe that you teach this well! Thank you man!
I was struggling to learn basic Java programming!
You're the best!
All those dislikes are from cougers.😂
"No offence"
Whats with this guy and apples?
Well, apples are extremelly tasty, so I guess thats why.
He's an undercover Shinigami.
all evil masterminds eat apples in movies. He just happens to love apples and is a mastermind.
That's great that you're learning them. Anybody can attempt to learn something. Being good at it is something different.
Bucky, you should use html and make a dating site... You seem to know a lot about dating... LOL! P.S. Did you ever date a 99 year old girl when you were 8?
+Bob The Zealot Not really if he thinks that as long as you're older than 10 you can enter the dating website
To an extent, I agree, some kids do want to make somthing, for nothing (In this case time). But some of us are actually interested. I myself want to do game design for a living, and I am 13. I have my mind absolutely set on doing programming. I will watch this whole playlist including the intermediate, because I have my mindset. Just because we are younger does not mean our "Interests" will last for a day or two then we will get bored.
I have done programming for a year and I am not bored.
2:33 Okay, so in your website, a ten year old boy could date my mother? Huge dafuq moment :P
Really you are a very good teacher .I have no any programing knowledge than also I can understand this video very well . Thanks for this video Its really very helpful
for me or a person who have no IT background
listen carefully at 5:00 u will hear a woman
HIPPITY HOP 😯😰
i heard a bird : S lol
You are a real good person. Teaching is spreading freedom.
in C++ these are boolean operators ^_^
that must be confusing lol
actually you can also call "&&" and "||" logical operations in C++ and "==" "!=" "" "=" also called relational operators.
I just found this vid after another course I'm taking went a little too quickly through the explanations.
Thank you so much for this video!!
Dating site with a 99 girl.. lawl
Thats why she can't enter.... but if she was 1 years old or even (-100) she could enter :D
These tutorials are great. Very straight forward and no excess detail :D keep up the good work
cougar, lol
Nice tutorials Bucky!
Lets see if I can get all the way to number 87.
Some of your comments crack me up, 0.39 - 0.48 made me laugh out loud :))).
Seriously though, the 10 tutorials I've looked at so far are really good.
Thanks!
import java.util.Scanner;class apples{
public static void main(String args[]){
Scanner bucky = new Scanner(System.in);
int boy ,girl;
System.out.println("Enter the boy age : ");
boy = bucky.nextInt();
System.out.println("Enter girl age: ");
girl = bucky.nextInt();
if (boy >= 18 && girl > 21 )
{
System.out.println("You can Enter and fuck ya !");
}
else
{
System.out.println("Oops You cant Fuck !");
}
}
}:P
+Anil gugloth bucky.close(); missing buddy :D :D
This guy is saving my GPA and career
i combined this with the user input thing and it works great! Thanks for all the help.
it's 2020 and i'm learning Java with this cool man
Thanks so much, you make learning java really easy, even I (as a 14 year old) have totally understood it to this point
Couldn't have said it better myself. Age doesn't mean much other than that you are interested in things most people at that age may or may not be interested in. In the end anyone is capable of learning despite age.
Way to crush his dreams man... I'm here because of Minecraft, but that doesn't mean I will give up. I got all the way to part 68 in this series and then took a break from programming, so now i'm refreshing my memory with the basic before I continue to the intermediate series.
Awesome.
Watching your first 10 videos i'm already ahead of my whole class.
I'mma practice the first 11 videos over the next few weeks then I'll move on =D.
I have an exam in a few weeks and i am trying to brush up on my skills, thank you so much Bucky
Your Tutorials are really helpful and by the way my english is not good but i can understand every Tutorial of yours because explain slowly and really pretty nice
We don't want any senior citizens on our site ;) Man, you are so funny.
On top of that these tutorials are very helpful.
0:49 this is why I love buckets tutorials his commentary xD he makes learning fun
HTML --- Hello, world!
C++ --- cout
qbasic: ? "Hello"
Christopher Kerns In python 3. its print ("Hello world") but in python 2. it is actually print "hello"
qbasic is print "iuhfhoujs"
wow im so proud over myself :) i combined this with the user input tutorial and made a program where it asks u how old u are and then you type it in the console thing instead of in the code itself :)
Thats easy man :D
tehJimmyy Yeah, looking back i sound like the worst beginner ever xD... well, improved allot since then and im making my own 2D game
How did u do that? Im also new to java. Could u give me the code?
import java.util.*;
class apples{
public static void main(String args[]){
Scanner agegetter= new Scanner(System.in);
int boy, girl;
System.out.println("What's the boys age");
boy= agegetter.nextInt();
System.out.println("What's the girls age");
girl = agegetter.nextInt();
if(boy>10 && girl
you are a 100000000x better than my cougar teacher at school. Thx bro
i would like to thank you for taking your time on these tutorials, they've helped me greatly =)
Dude in simple words - YOU ARE THE BEST!!
I actually "lol"ed at 0:40 to 0:48... bucky, you're awesomee
your the best teacher in this ive ever seen i understand it and im 11 im waching this to learn how to code minecraft to make a mod (i cnat spell)
this is a great way to read over notes because i can never retain information from a book, and i believe that they are called styles or styluses instead of pipes but i could be wrong.
I hope this guy is a college professor now. He taught me in 5 minutes what my Prof couldn't in 30 pages of assigned book reading....
Dude, that is revolutionary. You could build anythings with those 3 languages
@plopthepspking Java uses "short-circuit evaluation" for the OR operator. This means that if the first one is true, there is no need to evaluate the second condition, because it already knows that at least one is true. If you want to do something if exactly one of the two conditions is true, you can use the XOR operator, which is a ^ sign.
this is so much easier to understand than the lectures at the university... LOL!
Thank You very much man! That helped me a lot to understand the ' if ' statement.
I am planning on taking Computer Programming next year! (I am a freshman :P) and a friend recommended these as an introduction to java! :D
You are never too old to obtain a new skill set ;)
Actually bucky you are so funny,
You make me learn and enjoy in the same time haha xD
You have a new subscriber. Thank you, you and your tutorials are awesome. They've taught me so much
bucky is amazing and i have managed to work all of these! thanks bucky!
No offense dude, best tutorials ever, but:
Copy - Paser = ctrl-c - ctrl-v (makes it a lot faster!)
Keep up the grat work!
thanks for helping me understand more for my class did not really teach me as well as this video did on this topic overall.
Man you made learning Java fun and easy ! thanks alot and also keep it up!
brilliant! i was trying to figure out how to mix user input with if statements and couldnt quite get there, now i know, thanks :D
u r THE BEST JAVA TUTOR in the world thumbs up if u agree
Encouraging and motivating video for Beginner like me
its like logic gates, java is getting easier as inwatch your videos :) thank you
Dude, you are really good in teaching... Thanx a lot... Keep posted...
best tutorials ever :) its a definetly like from me
Dvorak user here; You can also use Ctrl + Ins for copy and Shift + Ins for paste - great for people who type more with their right hand.
Sometimes you need an answer to never give a decimal. For instance, you can't cut people into pieces when you want to fit a certain amount of people on a bus.
Use modulars % to get remainders.
Also, if you have a GIGANTIC project with your company, doubles slow your processing of the code.
Don't listen to these people in the comments, they don't know what they are talking about, I have already put this far into the tutorial in use and am making a text adventure. use java for whatever you want. Im sure Notch got all sorts of stuff like that when he was learning to code java.
These tutorials really are great, you should make more.
OMG becouse of ur tutorial i ve saved alot of MONEY TIME and EFFORT thank u soooooooo much :)
The example you were doing in the video with the boy and girl, can I use the boolean expression?
You are amazing at teaching Java...
hey everyone and bucky for future reference... for system output you can just type "syso", then press "ctrl+space" and it will automatically enter the line.
most useful guy on youtube
thanks man for this videos and your teaching you are doing really very good work from this videos. thanks a lot.
"You can enter" ... i see what you did there ;)