This cleared things up SO much. Thank you! My book just said "Methods are helpful for large-scale, complex programs".... not sure how they expected me to conclude from that statement that you can put multiple programs into one main program.
@kankanamgebandurathna29836 жыл бұрын
...
@zeeshankhalid57706 жыл бұрын
Get a new book love
@johnparker24868 жыл бұрын
Damm! I am learning a lot from 7 year old videos
@marinakozak60407 жыл бұрын
8
@towyan81877 жыл бұрын
now, its 8 year old!
@ruthvikchandra47157 жыл бұрын
Hey
@SnugLife7 жыл бұрын
Hey. :)
@artemedutech7 жыл бұрын
Hey
@Rayden44012 жыл бұрын
I cannot believe that I've been taking computer science at my high school for one year and have never been taught this! Thank you for finally clearing things up.
@N1G_HT8 ай бұрын
Agreed
@vojastevanovic6634 Жыл бұрын
2023 We still follow you! Actually Chatgpt suggested you among the top three complete, comprehensive and reliable yt channels to learn java programming! Well done!
@Hafiz_Muhammad_Zaeem8 ай бұрын
What are the other two?
@SasmithaGangadaraHAMMERHEAD8 жыл бұрын
I don't normally comment on anything, but this was really helpful! Thank you Bucky! Even after 7 years, your stuff are still gold! :D
@sujitpachode32072 жыл бұрын
Even after 12 years 😅
@cryostice2 жыл бұрын
@@sujitpachode3207 Still relevant!
@rolandemmanuel63992 жыл бұрын
Exactly Weldon
@tboontboont30568 жыл бұрын
Knowing something, and be able to teach it to someone, it's two different things.Well done.Tnx
@briandacallos42345 жыл бұрын
2019 ? 10 years ago and it really saved me a lot ! not afraid in programming coz bucky is always here HAHaa
@charleychener3 жыл бұрын
11 years and still
@Chris-sg4oy5 жыл бұрын
The way he dumbs it down makes the video absolutely spectacular and learnable. 10 years later this is still an invaluable tutorial!
@Zornarka5 жыл бұрын
Hadn't expected to get back on here to freshen up almost 8 years after my initial go at Java, and on top of that; the day before this video becomes 10 years old!
@nirmanranasinghe43975 жыл бұрын
10 years and still learning from your videos. Thank you bucky!
@KomradeKyle12 жыл бұрын
The examples make this entertaining as hell "Bacon and Cheese Class" Awesome examples man, thanks for taking the time to post all these.
@targho57447 жыл бұрын
slowly learning, day by day, increasing my knowledge
@ShiiteMusic10 жыл бұрын
Classes are not used to organize different sections of your code. Classes should really only be used if you are creating more than one Object. For example, instead of creating a class called tuna, we can create a class called fish. in our Main function we can create a new object: fish tuna = new fish(); Say later on you would like to add a goldfish object, all you would have to write is: fish goldfish = new fish(); Since goldfish and tuna are similar in that they are both fish, we do not need to create different classes for each. I hope this helps
@yannickvankerkhove53715 жыл бұрын
That makes more sense, thank you! I think it would have been clearer to use better analogies in his examples, like animals - mammals - cats for example instead of apples and tuna.
@obaykadour8680 Жыл бұрын
😂😂😂nice
@KimSoo-t2s Жыл бұрын
Learning a lot from this 14 years old video 😮
@SumBlackGuy50813 жыл бұрын
Im a programming major in college and YOU teach me more in 10 mins than my Java Prof. does in 90 THANK YOU BUCKY
@1988virgil Жыл бұрын
The Year is 2023 this is still valid yt channel to learn Java thanks Bucky!!!
@artamjeku5 жыл бұрын
Watching this on May, 9 2019... 10 years later!
@starboiii.043 жыл бұрын
11 years later
@j.bright680211 жыл бұрын
I don't know if you still update or view this page, but thank you for these tutorials. You explain so much better than my textbook does. I just read about this and I was mentally smiling and nodding as I was reading it. Now, I can reread it with a better understanding.
@boenliu76768 жыл бұрын
i...fucking....love you......saved my ass on a homework assignment.
@boenliu76768 жыл бұрын
+BoEn Liu hi ramon
@Sasha-zx5et7 жыл бұрын
Same here
@jamesleidhold7 жыл бұрын
Same. This is big stuffffff
@williamdriver461112 жыл бұрын
Hey just wanted to say thank you. I started trying to learn JAVA (with no experience) from a text book at home. Your videos have given me a bridge between where I am and the book. I am now writing my own code. I couldn't have gotten this far without you. Thanks.
@fadybengoufa63796 жыл бұрын
Watching it in 2018 still useful . thank You.
@vineetahendry8 жыл бұрын
I just want to THANK YOU for your tutorials! I've been struggling with Java for months now in school. I've only watched the 1st 14 of your tutorials and have learned more, understood more than the months of class work I've been doing. THANK YOU!!!!
@theeawkwardchild10 жыл бұрын
A couple years back i took a java class with a very confusing instructor which made me drop it but this really makes me feel like i can learn it
@hypogogix91259 жыл бұрын
Studying my HNC computing in Scotland. These video tutorials are a life saver and thenewboston is epic. Thank you so much bucky =D
@fauzytech7 жыл бұрын
System.out.println("The best tutorial EVER");
@sandpaperunderthetable67083 жыл бұрын
Error: unable to find class Main
@priteshranjan87653 жыл бұрын
@@sandpaperunderthetable6708 !!
@flake19433 жыл бұрын
20 tutorials done in one day, explained very well, i learned something new even though i know java
@mcpaintcraft870910 жыл бұрын
Ok, so Bucky (a.k.a Greg) explains that you can create an object for a class to connect both classes. What he doesn't tell you, is what static means. Static is basically used for the same purpose as an object for a class is (connecting two or more classes to shares things), but is lots easier to code. Here is an example on a static method: class Test{ //creates a static method public static void Eat(){ } } class Test2{ //gets the class and the method without creating an object //if I were to create an object for the Test class, it would be: Test testObject = new Test(); Test.Eat(){ } }
@stygiandemon9 жыл бұрын
Thx Mc Paintcraft its much easier this way but I Think Bucky method will be important later.
@mcpaintcraft87099 жыл бұрын
Just remember, there are multiple ways of doing something in Java. I just like to choose the easier paths, but know what the other paths do. There are some occasions when you do not want to use static. Occasions such as GUI programming, because it's often called bad programming practice. The reason, well, if you had two components that were declared as static components, and yet they were an instance of your GUI program, the results would be the same for both. I don't know about anything else out there that could go wrong, but that's one of the main problems I could think of. You're welcome ;D
@MattLoveday9 жыл бұрын
Mc Paintcraft You would not want to use static for templates of objects for example enemies in a game. You may want multiple ad having them as separate objects is the best way to do that.
@mcpaintcraft87099 жыл бұрын
That is why I corrected myself.
@Colstonewall9 жыл бұрын
Mc Paintcraft This video was about using different classes that interact, NOT about Static variables or Static methods which are a whole nother ball game. . .I can't speak for Java, but in Python, static methods are used a whole lot, only for very specific purposes. I would think it would be similar for Java. So, Im not sure what the intent of your comment is? To try and insult Bucky? Or was it just an innocent comment?
@einekartoffel353110 жыл бұрын
I learn better watching these than from going to my lectures. Good job man, thanks for these. They really help.
@zaheer006 жыл бұрын
Still learning in April 2018. Thanks man, appreciate all your efforts!
@micoruzic69475 жыл бұрын
Did you finish his tutorial?
@DABCI5 жыл бұрын
Bucky! You may never know how great instructor you are, but let you know you are one of the best instructors I have seen so far. You help alot. God bless you brother.
@nescius211 жыл бұрын
finally, 14th episode and i learned something something new
@danielstryver83888 жыл бұрын
thank you for taking time to share your knowledge. I'm currently studying "beginning programming with java for dummies," and paired with your tutorials I'm getting the hang of things quick. my subscription to your channel is well deserved. thanks again
@Warriorbeans4411 жыл бұрын
This literally is a life saver. My programming teacher refuses to go over classes till the 3rd semester of the year
@yolog373 жыл бұрын
I know this vid is like 11 years old, but it really helped me a lot! Clear and easy to understand, Thank you!
@kanalbleatchtojeeshe10 жыл бұрын
this guy is really obsessed with food.
@MustangDesudiroz5 жыл бұрын
who isnt
@hirakhirak91193 жыл бұрын
look who's talking
@ugurcanaydn59997 жыл бұрын
My book struggles to elaborate on variables(double,int,String) and you elaborate everything in 6 min.You express things pretty well.
@OffUltimateGamer10 жыл бұрын
Your tutorials make me hungry. :D
@cyclo94 жыл бұрын
Cool_Dude_9090 Get yourself a nice toast and a cup of java.
@ronitjalihal864 жыл бұрын
thanks bucky ,very helpful. you probably won't read this but it gives harmony to my soul.
@KevinYouAreAmazing11 жыл бұрын
"dimple message"
@matthewrideout4266 жыл бұрын
hey dude, thank you so much for these videos. For the past 6 months I've been using books, paid courses online and they are just over complicated and it obstructs my learning. These videos are great. Thanks man.
@jamesbrown-yr5cz10 жыл бұрын
where u do u really put the [] sign? before or after args, the square bracket in public static void main(String args[]){ }
@CassielusMaximus4 жыл бұрын
does not matter
@CassielusMaximus4 жыл бұрын
@C lol maybe it would help someone watching this video in the future
@gibemass65785 жыл бұрын
When this all clicks it feels incredible. Thank you Bucky.
@EpochIsEpic4 жыл бұрын
Classes used to confuse me so much. They don't any more and that pleases me.
@nishant31057 жыл бұрын
Man this is brilliant.. the way you explain things is exceptional.... u say u are lazy but u do have a patience of an instructor... love your videos ...
@cuteashish168 жыл бұрын
What if I write tuna class code below the apples class and then run the program instead of making a new class? Will it run correctly?
@khursandshakeel87678 жыл бұрын
Yes, the program will run perfectly. However, it's much better to write each class in a separate file. This enhances readability and will allow you to easily edit/modify any class later on of you want to.
@cuteashish168 жыл бұрын
+Khursand Shakeel okay, thank you.
@khursandshakeel87678 жыл бұрын
You're welcome!
@meinegrose10 жыл бұрын
this 6 minute video taught me more than a chapter that was filled with 100 pages based off this. Thank you
@abhashization8 жыл бұрын
In older tutorial you wrote main as public static void main(String args[]) now you changed that bracket to public static void main(String[] args) what is the difference? i am curious
@Jake17028 жыл бұрын
There has to be something to explain why they both work.
@MrAkshatmahajan7 жыл бұрын
They aresamee
@Jake17027 жыл бұрын
***** Yes, but why? What's the point of having 2 types?
@emretanrverdi3027 жыл бұрын
Java's prefers the "public static void main(String[] args)" Because java's syntax is also designed on arrays like: int[] array .. not int array[] But int array[] is also accepted because C/C++ syntax uses it like that. So Java accepts it too just because the others can accomodate. It's okay to use, but not preferred.
@yogod31107 жыл бұрын
Jake1702
@notnotmurico878311 жыл бұрын
Big brother your explanations were very brief and easy to understand, i watched all your toturial from C-Java and i can say that your tutorials are the most reliable tutorial especially when you're having an advance read. again tnx!
@snake86139 жыл бұрын
thanks for this tutorial :D you can explain better than my prof at university... which is quite sad xD
@AbdulRehman-yo2qn7 жыл бұрын
Bucky your videos are one of those where one hits the like button before even watching them.
@morsela691310 жыл бұрын
you are one hungry man.. apples tuna bacon & cheese...
@nelsonneto178610 жыл бұрын
Mc Paintcraft Hahahah kkkkk is a brazilian laugh, dude xD
@mcpaintcraft870910 жыл бұрын
Lol, still though, he's part of the KKK, omg. lol
@yup6329 жыл бұрын
Nelson Antunes Laranjeira Neto nada vê, o cara é com certeza parte da KKK.
@omegapixelled9 жыл бұрын
Nelson Antunes Laranjeira Neto try continuously saying the letter k that is not a laugh thats uh... "KUUUUUUUUUUUUUUUUUUUUUUUUUUUUUH"
@mcpaintcraft87099 жыл бұрын
I'm confused by your comment.
@edwinlimo53542 жыл бұрын
Thank you so much, I have learned that you can have as many classes as possible and call them from the main.
@totalytaco37159 жыл бұрын
6,969 likes, I'm not breaking it.
@remembermyname26978 жыл бұрын
+Totalytaco hhhhhhh lOl
@andromaster18 жыл бұрын
+Totalytaco its broken :(
@masterinting41258 жыл бұрын
+Totalytaco break;
@orangeceralbowl5897 жыл бұрын
NOW 9, 696 LOL
@fromup95946 жыл бұрын
10k
@likimiar7 жыл бұрын
Just watched it again many months later and it just clicked. Thanks man you're awesome. I owe you a tuna apple cheese sandwich.
@JossinJax5 жыл бұрын
wants to know why he didn't use "static" in his new tuna class.
@evileye1004 жыл бұрын
Because he`s create the new object of class
@chuckscott56246 жыл бұрын
Thank you, thank you! In the ending weeks of my first programming course and was hella lost. You have a clear and simple way of explaining things.
@DeltaVTango8 жыл бұрын
Hey the first time I saw this I thought I understood, but trying it myself I realized then you used tuna as the class name and as the object name in the main class, that it didn't need to be named tuna, you did that because you like to used food as names, Your videos are awesome but that kinda threw me for a spin for a while till i exprimented myself and realized what was really up. Just hought I should mention
@mediocrity9373 жыл бұрын
I can't believe I learned so much in a 12-year-old video. My teacher taught us this for 30 mins and you just explain this in 6 mins!!! I'm subscribing.
@carbon97037 жыл бұрын
1:15 It means that it is going to be available to the public 😂😂😂
@bihazards12 жыл бұрын
A fitting way to explain the "." into other classes' methods is like directories in a computer. Like C:\Users\YOURNAME\Documents. Pretend the backslashes ("\") are dots ("."), and the dots are the way of accessing methods inside. Your variable for a class (ie. tunaObject) has simpleMessage() inside, which is like tunaObject being a folder, and simpleMessage() is a file.
@thuzul151510 жыл бұрын
Thank you have helped me with java so much X D
@efrankdavis7 жыл бұрын
I'm thinking Buckey's a stoner. But he's the best teacher ever so live with it. Like that time he misspelled "trouble" and you had to live with that. Thanks Buckey!!! You rock!!
@jsf36012 жыл бұрын
why tuna and apples?
@emmanuelchimzytasie95464 жыл бұрын
it's 2020 & its still beyond helpful and we are still using eclipse (updated version) even makes it more understandable. Cool guy Bucky
@lopyus10 жыл бұрын
it shows like this, what does a package mean?: package bucky; public class apples { }
@salibisaac945010 жыл бұрын
can we use more then one method in the class? if yes how? thanks
@lopyus10 жыл бұрын
Yes, just keep watching the tutorial
@salibisaac945010 жыл бұрын
Thanks just learning slowly.
@johnisraelaquino43158 жыл бұрын
Your tutorials are very helpful. I was programming in C before, and now weve move on to java, i found it a little harder. I remembered yesterday as my professor explains classes, objects and methods, I didn't understand anything. I like how you explained it step step. Subscribed. :)
@fredgreen72877 жыл бұрын
RIP class naming conventions
@Rishab123126 жыл бұрын
NucRS thinking same thing lmao
@jerkface386 жыл бұрын
Who cares tbh. It's not a necessity for learning and most people that program know how to camel case
@alexanderfalgui830411 жыл бұрын
Bucky's tutorials make any programming language Easy! I learned C++ and Python and a bit of ruby (Not all). Now i plan watch the whole series of Java and go back to python.
@thenthapple12 жыл бұрын
if i put System.out.print(counter
@prathamtangri38034 жыл бұрын
'counter
@ericsarason90994 жыл бұрын
@@prathamtangri3803 How comes it's printing false twice at the end?
@DhananjayJindal4 жыл бұрын
@@ericsarason9099 Presumable @thenthapple ran a loop with counter going from 0 to 9 (i.e. 10 times). For values 0-7, the condition - counter
@ericsarason90994 жыл бұрын
@@DhananjayJindal Thankyou :3
@minecraftguides77603 жыл бұрын
@@prathamtangri3803 You gave a response to an 8 year old comment lol
@RimmaTJ2 жыл бұрын
I went through a gazilion online lectures, couldn't get anything and started already to believe that i am just probably soo damn stupid, but this video lecture is sooo simply explained and in such a detail! Bravo!
@xinranchu26529 жыл бұрын
Aren't the class names supposed to start with an upper case letter?
@SomeRandomFellow8 жыл бұрын
They should
@Nylfmedli146 жыл бұрын
Constructors do
@crhoads10243 жыл бұрын
This is a fantastic explanation of not just what to do but why.
@peterca9587 жыл бұрын
If teachers discuss this at schools, It would take more than an hour for them to explain what this is for.
@huseyinaktas74057 жыл бұрын
Good Tutorials for Beginner such as me who is new to JAVA and I am enjoying the tutorials and you make it so simple. Thanks again.
@JustinSoeung12 жыл бұрын
"syso CTRL+Space" is a shortcut to system.out.println(); :)
@heimskr28815 жыл бұрын
After a year of computer science, classes still confused me. This cleared it up, thanks! I had a single file with 1500 lines of code, multiple classes should make things much easier and efficient.
@anupriya16616 жыл бұрын
To write System.out.println(); in less time in Eclipse, Just write sout and then press ctrl+space Thx me later :D
@creeon99473 жыл бұрын
This was made so long ago but you are a life saver thank you
@luunguyen22177 жыл бұрын
holy shit. I have been struggle for almost a quarter, and then I found this super helpful video during my studying time for the last final. Poor me...
@Mihawk69 Жыл бұрын
for a 14years old video, i am learning a lot from this
@rakusect39915 жыл бұрын
lol you explained this faster than my professor's 2 hour lecture. For the longest time we'd been coding in only the main class, then for the next the project he assigned, he gave us a program that needed to utilize multiple classes to run. We were 2 chapters behind so he glanced over this simple concept. Mind you this is an intro class, but this should have been taught to us lol Thank you kind sir
@arnavnarula15348 жыл бұрын
It really helps adding code from all the past tutorials in separate classes. It helps since you can visit any previous code in the future without relooking the tutorials. :P
@latedeveloper78363 жыл бұрын
Timeless stuff. Will be helping me into 2021 and beyond. Thanks!
@BigTylt11 жыл бұрын
Static means that it cannot interact with anything. The empty parentheses are simply a place where parameters will go.
@Kazper3112 жыл бұрын
Nick: You can use lowercase, the compiler will accept it, its just not very readable if your dealing with a lot of code, you can also run into issues with naming a class with something that is in the FWL and will create issues and errors.
@anniewong4567 жыл бұрын
super helpful video! I just switched with C++ to java and I had no idea what was going on this class until now.
@markus03109811 жыл бұрын
With a background of other programming languages like Python or Javascript, this is pretty much all you need for Java. The way Java handles variables (done), and classes (this video), is pretty much all that is different. Only thing you need to do now is look up Java arrays and it's various functions as you need them.
@henanren11 жыл бұрын
String[] args is an array of strings called args. This allows the main method to use strings as arguments in its parameters.
@bhaskar_51685 жыл бұрын
Iam new to this coding world.. You helped me alot. God bless you.. Love from INDIA.
@jason37755 жыл бұрын
I swear by all things holy you are the only person that was able to get this through my head.
@Abadaa5 жыл бұрын
Lmao. Same here..
@halosinner211 жыл бұрын
The difference is the declaration of the array. For instance, int a[], b[],c[] is the same as int[] a,b,c.
@mohamedyusuf774810 жыл бұрын
Thanks man I have been trying to learn to code since forever and you are the only one who really make sense.Keep up the good work
@algo3an10 жыл бұрын
you explained it a lot easier than my professor. Thanks a million
@xaku53835 жыл бұрын
Been learning Java for 4 years at School.. Barely learnt anything.. I am going to try to follow these tutorials and actually learn something practically useful.
@shoaibahmed69588 жыл бұрын
wish i could meet you in person...... i wouldnt even go to a university if could have a teacher like you..... Great tutorial
@gene844711 жыл бұрын
Why is it that so many people who call themselves programmers feel the need to shut others down who wish to learn? You're not a part of some secret club. You're just someone with a superiority complex.
@sparrowthesissy21868 жыл бұрын
Wow, very straightforward. This same kind of thing was a pain for me to get right in C++ when I was first learning it. This almost makes me wish I learned Java first.
@Eli-cq8th7 жыл бұрын
Skimmed through three textbooks by Ph.D.s: couldn't understand this. One simple ten minute video by a teenager: makes perfect sense
@Sokka515O11 жыл бұрын
If you download a simple program called PowerTools, you can right click the top the Eclipse window and select 'Always on Top' and this will make it so every time you click on KZbin in your internet browser, Eclipse does not go under KZbin. You also can set the Transparency od the window with is program and you have these options for any window.
@zachsawyer90384 жыл бұрын
This just explained everything that I was having such a hard time grasping. Thank you!