Added: 2 years ago
From: thenewboston
Views: 215,557
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (451)

Sign In or Sign Up now to post a comment!
  • my friend, you were born to teach!

  • For anyone wondering, the "%s\n" was to make the second object go on the second line.

  • you should call your first two girlfriends Tunaobject 1 and 2 in real life :D

  • thanq its helpful for me to recall everything :)

  • \n ??? \r ??? !!!

  • @gustavboll1 \n =\r  ===> New Line

  • thanks!

  • tunaObject2, NOT 21...

    somehow it sounds so frustrating

  • Kelsey created 22 accounts to dislike this

  • oh god!!!! your programs teaching rocks!@!! ...... yeah... one question... is there any way i can download all your tutorials at one go, instead of doing it again and again and again for different videos???????

  • thumbs up if you are the lucky 210 000 viewer:)

  • my output says "your first GF was righthand" "your first GF was lefthand"poor me.

  • why do you need the private class.

  • @misterolichip by " private class" if you mean the second line in tuna.java program which is " private String girlName; "... it is not a class its a variable declaration it means, that line creates a "container" called girlName which can store only strings of characters...

    it is declared as private in the spirit of " encapsulation " that means girlName can be assigned the string value only by the methods in the same class and not by some other classes...this is done to avoid hacking & viruses

  • not constrictor feald 

  • My first girlfriend was a tunaObject:P

  • Can we remove on tuna.java the method setName? Actually the constructor is doing that ... isn´t it?

  • @bistanz Yeah, the whole point here is that it is better to use the constructor instead of the setName method.

  • The top comment is that it's confusing...but I'd say the previous one was much more confusing for me...

  • Comment removed

  • I really appreciate your time you devoted to us how to learn programming in Java

  • the tuna class here just contains hopping 'methods' which make the instructions jump from one line to another which are routed from the apples class

  • anyone else have both of your gfs print on the same line and anyone know why this might be?

  • @Dragonsthought the comment below yours is the reason why, its %s\n in the tuna class which he never explained(or said that he put in, i was confused also)

  • what is /n in "your first gf was %s\n"

  • @COD5252 the \n it's a linebreak, the next code you print out after \n will start on a new line

  • @COD5252 " \n " is for next line or line feed or new line

    whenever \n is encountered the text that comes after \n will be printed in a fresh new line its like pressing the enter key

    in this articular case the next print line statement will print text in the next line starting from the left side of the screen

  • Comment removed

  • I was asked to code a default constructor and a constructor that takes in three arguments . . . now I get it what is a 3 argument constructor but whats a default constructor??!!

  • two first gf, you are a such a dog bucky XD

  • correct me if im wrong...so the constructor is just sort of a default for your variables?

  • I'll skip that and hoe it makes sense later

  • man the previous lesson took me like one hour to understand that shit, damn this Java is hard and am such a noob -_-

  • love that Java has some stuff called CrapCleaner that sets all

    values of nonused or undefined variables to 0;

    in C++ you had to set all the values by self in constructor, and then deleting it

  • *Looked down under the other videos: Tutorial 50: Graphical User interface GUI*

    RAGE QUIT :P

  • Wtf!? LMAO! Nicole was the name of my first girlfriend! And I was working with it lol.

  • Hi Bucky.. I would like add something here. Thr wnt be ny return type for a constructor. tats th rule in Java.

  • lol I study this at school and I hate it

  • They can't see each other's variables... ehehehehe... That was horrible.

  • Question of the day: How many tunaObjects could bucky create:D?

  • Lol. My first girlfriend was my hand. Still better than null. :P

  • So what I get is that the two objects are not visible to each other, so we can use each of it and the other will not know that...perfect way to have two girlfriends :D

  • I got this "null" output in the last tutorial...

  • @uratoko I had this problem for the last 20 minutes. Here's the answer- make sure you don't mix ints and Strings. Little tip- if you're having problems, just read through the program and think about what's supposed to happen in every command, as if it's the first time you're reading it.

  • My first gf was null :(

  • thanks for the help. your series is really great. it's what i needed to help me understand the concepts.

  • Kelsey is so confusin >.>

  • a girl is a tuna! this is breaking evidence!

  • What does %s do?

  • @cocksnap123 Look: String name = "Richard"; System.out.printf("The name is: %s", name);

    what will appear in the screen:

    The name is: Richard.

    So, %s shows the string followed by comma "... %s", name);"

  • Very nice tutorials, I'm a somewhat beginner at Java and these tutorials have helped me so much, thanks for making them.

  • How come The strings come on the same line?

  • @SeargentIceCream he added a \n after the %s in the System.out.printf thing but he didnt say anything about it.

  • @pubert123456 THANK YOU SOOOOOOOOOOOOOOOOOOOO MUCH MAN

    :D

    Ur a real help! Idk bout u but java is hard!

  • @pubert123456 if you add \n in comments like System.out.println("Hello \n Hello"), the message that comes after \n goes to the next line.

  • @mihelegeorge interesting. \n is used for the same thing in the scripts of pokemon games.

  • i have no idea what i just made but it was fun :)

  • I think he should start each tut with these different classes a little bit simpler, I often get confused >.>

  • @OCoptimusconvoy I sure have :C

  • you were two timing BUCKY!!! YOUR FIRST GF WAS KELSEY AND NICOLE??? lol

  • nicole totally was a tuna object

  • I think I have got it..

  • Well I'm watching the series for second time, now all is clear :D

  • Confused dot com

  • @Vidkol cheap car insurance? :D

  • @xXxDiukexXx Aye!

  • Nicole was such a tuna object.

  • is it just me or do these videos not give a fundamental understanding for a beginner? ive just begun and i can do all of this and remember it and understand it but idk what a variable is, a method is, an object is, how these things relate to eachother.. i just feel like i was thrown into the deep end without any guidance or definitions to copy down. :c

  • @thatjacobkiddo have you watched from part one?

  • @thatjacobkiddo Best thing to do and this is what I did is get a book, study take notes and then after that you follow along with the video and everything seems clearer. Bucky is a great teacher but it also helps to read more into things he talks about.

  • :SSSSSSS

    

  • @mpboomslang apples applesObject

  • Can you say tuna tunaApples to name the object Apples

  • can somebody tell me why does girlName need a value? while in the previous tutorial it does not need one.

  • i am thinking of leaving programming and work in tuna business. seems i will have more gfs :))

  • These videos are incredibly well done - clear and comprehensive. They also force viewers to do a little side research on their own, which is good. You never really learn a new concept unless you have a question that you have to do a little digging for. Thank you!

  • For all who are getting confused by multiple classes and anything else covered thus far, I would recommend trying to learn some Python before going to Java. I have a slight background in Python, and it really helps.

  • @mlackey94 thanks man.. but that would took me a lot of time to download all the 87 videos..

  • hello bucky, is there any torrentz file for your java tutorial? so any one could just simply download it and watched it off line.. thanks.. anyway this is a great, simple and direct tutorial..

  • @SaintGerald Get RealPlayer, download and install then you can download all of these videos and play them offline. If you need to convert them to Itouch or something I would recommend downloading Total Video Converter as it is faster than RealPlayers converter.

  • I hatttteeeee arrays! They are so complicated smh to learn and practice.

  • As soon as he began teaching us things with 2 classes, I was lost.......... So confusing :/

  • any1 else watching these just for a class?

  • keep up the good work...thanks!

  • WAHAHAHAHAHA D:

  • mine works execpt they're both on the same line

  • @fancyman3553 You can see at 0:20 that is says there "Your first gf was %s\n". He forgot to tell about "\n", it makes a new line.

  • @fancyman3553 in the tuna class u have to look closely because he didnt mention that he changed the saying : System.out.printf("Your first gf %s\n", getName());

    he added the \n nex tto the %s ;D

    this will olve the problem

  • Comment removed

  • man this is so confusing.

  • @amin031 Do it as he does, get some clarity.

  • @amin031

    it really easy dude..if u want any help message me in my chanel

  • @amin031 There's a Berkeley professor who teaches it well, his lessons are on YouTube. In my experience as a CS student, it's mostly just a matter of experience, after a while... you just know it.

  • @6dark6alex6 can you share who this prof is? or the channel at least? thanks!

  • Honestly, I cry every time you say "of course" and yet I have no idea what you are talking about...

  • "Appropriately named tunaObject2" makes me laugh every time.

  • Why don't you capitalize your class names?

  • indeed, my first gf was null, which means I still haven't had a gf :)

  • @TheLazus fail

  • am i the only one who has all his tutorials on one file? except of course the other files you have to create

  • i laughed way too hard at "appropriately named: tunaObject2"

  • tuna, bacon and women are delicious.

  • Wait, his first girlfriend was both Kelsey AND Nicole? Was he doing both at the same time??

  • notice how the first two girlfriends he had were fish

  • facebook i know everybody

    wikipedia: i know everything

    google:i have everything

    internet: without me you are nothing

    electricity: keep talking bitches

  • are there any java tutorials for people coming from c#? the syntax seems to be pretty much the same and it would probably save me a lot of time if i only needed to read what is different from c#...

  • Kelsey smelled like tuna

  • Hey EpicnessPivotMaster,, just do it and do it again because the concepts you'll meet are not so easy to understand but if you do and redo the exemples, you will understand better and better. As we say in english...NO PAIN? NO GAIN!!!!!

  • Thumbs up if you were at tutorial 39 and had to watch this again :)

  • "...appropriately named 'tunaObject2'"

    hahahaha that's bad

  • Hi, I am still following your tutorials and i do understand a lot more about the Java language... I wanst new in programing, maybe because of that or because you are very good with what you do...

    I just want to inform you that you forgot to explain about the \n tag. If i do understand well, it make sure that the output is displayied on the next line.

    This is what you had:

    System.out.printf("your first gf was %s\n", getName());

    Thank you a lot for the tutorials

    Best regards

  • in 1 day im here

  • @chrisall76 That's not hard...

  • People need to stop telling me what a constructor is; I'm pretty sure even the dumbest person out there wouldn't take 2 months and still not get it. XD

  • @zerohourkevin I'm just going to slightly simplify what my colleague below said. Basically, a Constructor is like the "Default" setting for a "Switch". If there is no input(Match), then it uses the constructor(Default). Hope you understand this :)

  • @RyanBallou97 how much money does a JAVA programmer gains per month?

  • mom says i have to go to bed... maybe if i turn off the lights and lower my monitors brightness she wont notice...

  • He forgot to say that a constructor does not have a return type!

    public void tuna( String name) { girlName = name;

    { is wrong!! It's not a constructor!

  • previous tuna class methods wer written before the vedio started its bit confused

    otherswise , its cool !!!

  • may anyone explain me in which order the program reads the code so that it can show the two sentences with "your first gf was....."? i think i understand the meanings of the different methods, but i don't get in which order they are handled since there are two classes... which class is handled first?

  • @TheCarmacon It starts from the Main function :)

  • @oonmm ok, so first the variable gets the value "kelsey", then the program changes to the "tuna"-class and prints the sentence "your first gf was kelsey" - after that, the variable gets the value "nicole" and so on... right?

  • at 4:23 when he runs his program, "Your first girlfriend was kelsey" and "Your first gf was Nicole" are on different lines. But when I run it, it looks like this: "Your first girlfriend was KelseyYour first girlfriend was Nicole" What's happening??

  • @C0GSniper you didn't use the System.out.println() method you used System.out.print() try it with the println it should fix it :)

  • @C0GSniper Just add \n at the end of the method , it should look like this (just like in his vid, he modified it without telling us!

    System.out.printf("Your first gf was %s\n", getName());

  • My Result - Your first gf was tuna !?!

  • I think he's trying to say all women are tuna.

  • Wow, gotta admit I don't understand jack sh*t compared to 1-15 :(

    Anyone else had this problem? Did it pass or am I f*cked?

  • "Appropriately named 'tuna object 2' ".....dude, you're killin' me! I laughed my ass off!

  • about 30 vids away from making minecraft plugins 0_0

  • I love your tutorials! I'm going to watch all of these java one, and the C# ones c:

  • How do I stop it printing on the Same line?

  • @GamerPotty you can use println, or else, you can use \n to skip to the next one so it would go "blah blah blah %s \n" so what the \n does is skip one line, if you put more than one \n you will skip more lines.

  • I can't understand that String name! Why name? I'm going crazy.

  • @LateLama String name because its a string, and name is just a temporal name you will be using inside the method to do stuff, outside the method you wont be able to use it as name.

  • Too many methods! D:

  • How do you get these files to see each other?

  • Thanks for the help!

    

  • Head Fist: Java > thenewboston

  • @Gizmotroid I don't remember if he explains it or not since I haven't gone back to watch all these videos(great series) but Bucky makes the getGirlName method a "public String __" String refers to it's return type. Return simply "returns" a value of specified return type to it's method. That's why when you call that method in a print function, it prints the value it returned.

  • Thanks Bucky!

    I had been trying to understand constructors on my IT-studies for 2 weeks now.

    But after I watched this, I realised that I had already learned them and had been using them since I watched this video about 1½ years ago.

    They just use different terms in Finnish.

  • help it wont stop using previous method when i do this

  • God I love tuna!!!

  • useful if you have multiple variables that youll need to initialize in multiple classes. so its just like calling a method except calling variables right?

  • I have such a gigantic headache now

  • "Appropriatly named tunaObject 2" is maybe my favorite line for a girl ever. The fact that it is in an AWESOME Java tutorial makes this even better!

  • bucky is obsessed with tuna, bacon and women........

  • @mdairkee and apples!!!!

  • @mdairkee Can't blame him. (:

  • @mdairkee and apples :D

  • @mdairkee you forgot about apples.

  • I don't understand why private classes can be useful! Can't you just merge it into a single class?

  • omg this is so confusing

  • Damn, I went on holiday and forgot a large amount. Guess Ill start aging them

  • @Eniacbc but he turns them into objects :p

  • Who else giggled when he said "These two objects can't see each other's variables" whilst highlighting tunaObject and tunaObject2?

    xD

  • Nicole...tunaObject2 appropriately named. Lol Nicole u just got rashed upon.

  • Since the 16th tutorial I started not understanding anything... :(

  • @EpicnessPivotMaster

    the problem is, that he can't go too much into detail in his videos. I suggest you to read

    math (dot) hws (dot) edu/eck/cs124/javanotes6/index­.html

    There you really learn to program ;)

    cheers

  • @EpicnessPivotMaster Yeah, its kinda confusing at first. But, it is pretty much the same in all programming languages, so you don't have to learn that many new stuff once you get the basics down.

  • "Kelsey, she was a babe...." MY GOD!

  • Teaching Java or talking about your gfs?

  • "lemme talk you guys through this one more time and then ill show you a little trick" ... he then goes on to show the trick... WHERE THE HELL WAS THE WALKTHROUGH?! lol j/k Great tutorials!

  • around #14 i stopped understanding stuff...

  • @Smellyhobo10101 haha, amen.

  • Do constructors not need to have a return type?

  • @sushifiesta57 No. Either you do what he did or you leave it blank (ie without parameter).

  • Around here I started not understanding stuff.

  • @zerohourkevin Revise other tutorials. It helps. And if you saved your old work that really really helps.