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

Link to this comment:

Share to:

All Comments (468)

Sign In or Sign Up now to post a comment!
  • Those damn semicolons, I always miss em

  • p.s. u don't need the Scanner thing i tested it 

  • System.out.println(tuna++);

    System.out.println(tuna + bass);

    :D

  • i made a function that raises "x" to the "y" value or

    x^y=answer

  • some things are just not logical to me, why put a whole new line of code like tuna += 5 when you can just go up and put 10 in your main line?

  • @dylanroo Because sometimes, for loops for example, you want to have something to loop a few times. Let's say tuna = 0, and you want to have a loop run 5 times. So you program the loop and at the end you write tuna++;. When wriing the loop, you specify that it should stop, once tuna hits 5, that way, you will have your loop run 5 times.

  • @dylanroo it's useful in a bunch of things...like if you want a counter that goes up by 1 every few seconds automatically, think about it.... it's better than writing dozens of variables just to do it. ;)

  • lol my prgraming teacher is such a noob at teaching, i didnt understand shit all when he was teaching, you make it much easier to learn

  • 3:34 but that's a paradox logically :P because if tuna = tuna + 5, then first it would start out as tuna = 5 + 5 which would be 10, but then it would change to tuna = 10 + 5, then tuna = 15 + 5, and so on and so forth, therefore equaling infinity :P I know, I need a life :3

  • @SergeantBalthazar at least you did something with your life

  • 2:48 youre voice changes haha

  • But why do you put tuna++ instead of ++tuna in println()?

  • @Patrickdaawsome tuna++ adds 1 to tuna after printing it and ++tuna before

  • @joonas2345 I understood that but nevermind. Thanks.

  • Hey I Just Made A Troll Program you Enter Your Two Numbers But It Adds One To The First Number Without you knowing

  • I wish I could tell him in the past that he could tick the "Always save resources before launching"check-box and save about 5 mins of his life :(

  • int likebar = 1428;

    likebar++;

  • Who is this social wire, 16 year old millionaire guy?

  • @b112895 watch the video. I did and i was surprised

  • I want to swap my ICT teacher for Bucky. Vote up if you agree :)

  • +++?working?

  • So thats pretty much what happens when you spam = on your calculator.. lol

  • does this work too?

    Scanner bucky = new Scanner(System.in);

    double tuna = 3

    double bass = bucky.nextDouble()

    tuna += bass

  • @florinel384 Dont think so but this does the same I think:

    double tuna = 3

    tuna += tuna

  • @florinel384 I think that's like a shorter but less useful of the calculator in episode 7. I think that between double tuna and double bass you can have System.out.println("type the number to be added to 3"); but the best way to know if it works is to test it out, if you have an idéa then. but I think it will work.

  • You are a legend mate... thank you!

  • is it me or is java for lazy programmers, having tuna += 8; rather then tuna = tuna + 8

    must write as little as possible,

  • @georgebarnett121 Java isn't the only language to do that. But I'll tell you, it's a nice operator to have :)

  • nice,,,,,,,,,,,

    

  • good tutorial, but any1; why he created da bass variable?

  • @sonsofneo he was going to use it later but he never got to it... its not required or anything

  • Sorry not sure if you mentioned or not I think you forgot, but you can also add the two ints together ass like;

    tuna += bass;

    incase any1 was wondering

  • Or you can change it to 6 XDDDD

  • ok, why did we learn doubles in the first place when this looks a lot easier?

    sry i'm brand new to this stuff :D

  • I like I soon fulfill my dreams of becoming an awesome java game designer yay :D

  • the scanner in this code is pointless

  • i want tuna now

  • Whats with this guy and tuna Lol?

  • Was anyone else like.. Why do we have to use maths -_-

  • Comment removed

  • tuna is autotuned in his mind

  • how to increment user entered integer value

  • @gameguru10 Not sure.. we didn't use it though so it can be left out. @MrKozelijko No you don't have to skip lines but yes it does make it more organized @thecomputerkid11925 No we didn't need to import the scanner for this since we weren't getting input from the user.. but adding our own numbers and displaying something

  • As we get further in the tutorials the view go down...

  • @Zooman989 he makes verry great tut's for beginners :) too bad some people dont wanna learn it when it gets a lil more complicated

  • @Zooman989 tht jus mean ppl arnt commited "/

  • @Zooman989 ¨people are lazy

  • @Zooman989 short attention span?

  • @Zooman989 by the end of the tutorial you can use the difference in view-counts to calculate the percentage of people with short attention spans :).

  • @Zooman989

    Answer: Rage quitters

    :D

  • @Zooman989 who will survive to the end?

  • @Zooman989 noobs cant handle the java,,, :)

  • @Zooman989 Some people just decide they don't want to learn Java. Oh well maybe they will come back later. I did.

  • Do we have to skip lines? Is seems as a waste of space, but yet it makes it more organized.

  • @MrKozeljko

    You have infinite space haha and when working with Java you always want to make it so others can read your work and adapt to it if you get me.

  • Do We Need The "Import java.util.Scanner" Thing?

  • Big TUNA!!

  • hi bucky ! i just wanna ask a question.

    does (String[] args) the same with (String args[]) ?

    thank you so much !

  • @azmaiparashvilli01 yes it's the same

  • cool, moving from AS to Java is not that difficult!

  • Bucky! CTRL+C and CTRL+V

    This bothers me so much haha. But other than that, I love you, Bucky!

  • @firedragoncow1234

    Yeah, all programmers should be hotkey hogs. It's in their intuitive, lazy nature. I don't even highlight with my mouse anymore. I use shift and arrow keys.

    By the way, that's a good way to train oneself to use hotkeys. Just unplug your mouse so you won't ever be tempted to use it. Ever.

  • @pzmtuthcvpvl thanks

  • thumbs up if you remapped "run" to 1 key like this "  ` "

  • thumbs up if you're todays iphone 4s winner

  • Am i the only one thats hungary -__-

  • @iananimatorpro I'm Italian. I sure am hungry, though!

  • Comment removed

  • Great Tutorial!!!!!!!!!!!!!!!!!!!!!!­!!!!!!!!!!!

  • Comment removed

  • heh, after the last tutorial I was wondering if these were in java. I write javascript so I already knew these.

  • should I learn this, then go to Java game development? im looking to create Minecraft mods

  • @vaibzzz123 Yes. Gotta learn to walk before you can run.

  • @vaibzzz123 Make sure you really know what you're doing before you try to release it the internet. People are mean out there, they'll eat you alive and criticize you for every flaw in it.

  • @JakeJohnRogers ok, thnx

  • if anyone was wondering, typing // before or after a line of code, lets you give your own text/description. for example

    ++ chicken;// or put in println method (println(++chicken);

  • @vaibzzz123 I believe you can put personal comments like this as well: /*Comment*/

  • @lex224ification You can

  • // it divided it by 1 TROLOLOLOLOL

  • @warriorsfan12331 Try dividing by 0.

  • I... can't stop!

  • @melle345 He uses Camtasia (I saw it in one of his older videos, where he zoomed in on the taskbar, look back at the download videos if you don't believe me)

  • i love ur videos coz they r short n takes zero time to buffer......

  • =/ minecraft seriously. This can be used a lot more professionally than minecraft. Its larely meant for people who actually want to program something. But what ever.

  • i realized that java and javascript is just a mixture of basic programming languages.....But mostly C, C++ and Python! and somehwat HTML

  • @1tirth actually java is completely different from javascript except for the name. Javascript is an OOP language that has to be encrypted into HTML while Java makes complete programs by itself. Also, almost all programming/web development languages have a lot of the same syntax.

  • @RynoFb lol...actually i realized that the next day when i went on the internet to learn the differences....but what my point was that if you know the programming languages like C, C++, Python, learning the others like JAVA(Script) would be easier.....

  • @1tirth yah, I see what your saying, but then again if you know Java it'd be easier to learn C, C++, Python, Ruby, etc....If you know Python it'd be easier to learn Java, Ruby, C, C++, PHP, etc. Almost EVERY Object Oriented would be easier to learn if you know another OOP

  • Guys just a heads up, you don't need the to import the Scanner and create a new Scanner for THIS specific tutorial(Just to clear up the confusion) ...Not sure why he left it up, laziness perhaps? Hope this helps!

  • Funny how there are less and less views on each of the videos in this playlist, it's like the people give up gradually as their brain overloads more and more from every vid XD

  • @jxs22 lol happen to me.

  • i need a way to make a variable thats holding a username!

  • @LittleGuy536 THATS EXACTLY MY PROBLEM!!!!

  • @dogbreth7 and @LittleGuy536

    make a String variable;

    String test = "Username";

    System.out.println(test);

  • @7LFproductions Yes, later i asked my dad how to (hes a programmer) later. But thanks anyways!

  • Nice video, useful!

  • @cakefactoryy modding is 10x easier than this :)

  • Thumbs up if you want to learn java, to be able to manipulate the minecraft source code.!

  • @cakefactoryy Naw, i actully wanna make games of my own (:

  • LMAO...This guy must realllyyyy LOVE Tuna!! :)

  • @littlea5h tuna + lemon + black pepper on pasta is so awesome.

  • @Claymore2408 Thanks for the heads up. I'll try programming that and see what the outcome is :D

  • Great

    

  • Anyone else wonder why we had to make the bass variable?

  • @gameguru10 he seems to like fish lol

  • @gameguru10 it just act as a backup ^^

  • I don't know why but I'm kinda hungry for some tuna...

  • How do you guys keep track of stuff?,i just make a new class for each tutorial with comments on what everything does so i could always come back and see how it works.

  • @Clambercty You know when you typed 'java classname' to start a program, before we downloaded eclipse, you can add extra information - ie typing 'java classname lachy2901' would make the variable args[0] equal lachy2901. The square brackets means an array, so if I typed something after lachy2901, say tuna, args[1] would equal tuna. The numbering starts at zero!

  • Epic tutorials man, keep em comin

  • Is there an assignment operator /=?

  • 12 people are to stupid to write java

  • thanks!

  • Your tutorials are sooooo much easier than the other stuff I pirated from Lynda and VTC lol

  • @ProtonHazard PIRATE?! PIRATE!!!!!!!!!!!!!!!!

  • Actually it isnt ++tuna, it is tuna++ but who cares :)

  • Bucky the Java slayer.

  • @qwerty657ful hahahaha

  • damn no +++ only ++???

  • You could use this to make a basic counting class

  • >not using ctrl+v

    >mfw

  • @DoomdnZz He does it to show the viewers EVERYTHING he does.

  • My compiler adds two instead of one by default...

  • Bucky does an outsanding job!

  • Do you like fish? Bass and Tuna :-?

  • You've helped me tremendous. Thank you. What separates you from the other people trying to help people understand, in my personal opinion, is the way you relate to things everyone can understand. Like boy + girl = people. Little things like what you do helps in every way. Thanks again.

  • 78 videos to go.

  • @shg297 I agree.

  • NEWBOSTON IS DA BEST youtuber in programming!!!!!!  :)

  • You are a coder/programmer, and you do not use ctrl c-ctrl v to copy and paste? WTF??

  • @matteolima obviously just wants to be clear on what he is doing..

  • @matteolima it's to be clear

  • UR THE BEST MAN, PLEASE KEEP IT UP, YOUR HELPING ME WITH EVERYTHING!!

  • * I meant lesson

  • You can use that less to "fix" an operation or make it adapt to a new situation.

  • Started watching for minecraft....on like #5 I was like screw that this is AMAZING!

  • No MC comnnets? I guess the last guy gave up.

    Anyway, Minecraft, here I come!

  • @Darthshepius Most people think "Oh yeah! For Minecraft!" then give up.

    Besides, look at the first video, then look at one of the middle videos(48 or something) and look at the difference between views.

  • just discovered that you can use the assignment operators with other variables instead of numbers... ie :

    int tuna = 5;

    int bass = 10;

    tuna *= bass;

    System.out.println(tuna);

    should output 50 :)

    just thought it would be nice to know for the future :)

  • @TwizzyTheWizzy TY LIFE SAVER!!!!

  • What's with the 10, 11, 18 an so on dislikes in buckys videos?

    Seriously, if you don't like #1, then #2 and all the other ones will be the same crap...IT WIL,NOT GET ANY BETTER (unless you are retarded so keep trying you have an excuse).

    anyway great videos, very helpfull.

  • I still dont understand what

    public static void main(String args[]){

    Means?

  • @TheHohoyo there's a fine line between laziness and efficiency

  • thenewboston i dont know if u would read this but u r the only person ive seen on youtube to teach me computer languages with me completely understanding EVERYTHING thank you

  • @TheHohoyo its different from laziness.... consider the fact you have to make a 500 line script and reuse concepts, the time would be exponentially greater

  • This is so much like Visual Basic! =]

  • @WordWizzard4 nope...its most similar to C++

  • no top comments for minecraft

    here's my chance

    um....

    I like minecraft???

  • I got an F for doing this at in my math class :(

  • @zki2 Better than math,i guess you gave me something to do when i finish what i am supposed to for the day in math,thanks!.

  • i keep on getting 7 weird right

  • after 1/2 of a day this is were i am so slowwwwwwwww

  • Great video

  • @TheHohoyo

    Why do you think that is my dream job ? :D

  • We can do this by coping this babeh, oh yea, paste, there we goooo...

  • Java isn't as easy to learn as HTML script, javascript, or XML. But compared to Assembly language its simple. Assembly language is like learning alien speak. It takes programming down to the bare bones level. If you can program in assembly, you must be part robot!

  • 1000th like xD

  • i have same code as you, except mine gets error at line 4. please help and thumbs up so i get help

  • @carrots087 check ur import line and make sure it has a semicolon at the end

  • @Thegamecheats Troll

  • PRO TIP:

    Save all your files, and at the top, put comments to remind you what it does. -To make a comment, just start the line with //

    Then when you get stuck, you can look back and find a solution. It helped me.

  • ? wtf _

  • @Thegamecheats

    Without them, there won't be games.

    That's why:

    -Your dick is small

    -you have no friends

    -you'll be a 65 yo virgin

    -you fail your classes

    -are a fag

    -you can't spell right you gay queer faggot dick sucking chode muncher.

  • @HeteroProductions lol fag ur computer sux u cant even put a _