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

Link to this comment:

Share to:

All Comments (312)

Sign In or Sign Up now to post a comment!
  • What program are you using with java?

    I have JCreater...do you know anyone using that?

    Oh and I want to run a program with an array, so I am solving for the odds and evens and then creating new arrays with those numbers. How do I do this when I have two files??

  • @MoeGreenRoxz he is using eclipse

  • how do u get the console display???

  • @B1KMusic Minecraft.

  • So System.out.println(counter + "/t" + bucky[counter]; means that whatever counter is, it puts it in place of counter and prints the array. NOW I UNDERSTAND!!!

  • eighteeeeeeeeeeeeeeen...

  • I'm surprised the top comment isn't about minecraft :/

  • Great video, you should be a prof

    

  • How I can add int numbers to Array from a method ? like public void AddArrayNum(int ArrayS)

  • Everythime I watch the video, I like it because I can skip to the next movie realy quik, but he totaly deserves it!

  • Comment removed

  • so far, your videos are amazing :) Thanks

  • oops, i missed out the o in counter!

    bad mistake to make

  • i wish you were my computer science teacher lol you make it so easy to understand.

  • Bucky I love you're tutorials and they're really helping out with Java, but I learned it's better coding style to do int[] bucky = {} instead of int bucky[] = {}

    Anyway, just wanted to point that out, nice job on these tutorials man.

  • BUcky bucky the duckface

  • java is missing foreach loop?

  • Comment removed

  • for ( int buckyvideoswatched = 28; StillNotAProgrammer || StillHaven'tKilledMyself; buckyvideoswatched++)

  • @applechunks32 System.out.println("applechank­s32 is stupid")

  • @zdape What a swell fellow.

  • @zdape Missed out the semicolon to end your statement!

  • honestly i found the array tutorials very easy...

  • @KapowPower

    try do exercises that will be difficult lolol

  • lets go ahead and make a program that permanently removes 1 banker from this planet everytime I cough and 2 everytime I fart. have a mess around an see what you come up with.

  • lol bucky, close tuna.java ffs :p

  • last line

    why did he write bucky [ counter ]

    why counter?

    please explain

  • @Hidokaka1 cuz thats the for loop counter... so it goes like bucky[0], bucky[1], bucky[2], bucky[3], bucky[4], bucky[5] and so on

  • @Ronaldoo91 holy mother !! how did I miss that

    thnx alot ...

  • @Hidokaka1 no worries bro, anytime

  • i understood a lot...great tutorial

  • hey man i really need help!!!!!!!!!!! im taking university level programming in grade 11 using ready to program java and were doing arrays right now. I dont know what im doing cause i didnt take the pre request course that we needed/recommended. is there any way you could use ready to program java cause coding is a little different in-terms of terms :S

  • @SporcMonkey im in the same situation as you im a grade 10 taking gr 11 comp sci, this stuff works in ready to program java

  • Score board:

    public class apples { public static void main(String[] args) { System.out.println("Rank\tScor­e"); int bucky[] = {0, 41, 32, 4, 2}; for(int counter = 1; counter < bucky.length; counter++) { System.out.println(counter + "\t" + bucky[counter]); } }

    }

  • I figured out the stupid 'counter cannot be resolved error', but now I cannot get the columns to lineup properly. The values for the value column are too far to the left.

  • @forexdragon To solve that error, just define counter outside the for

    int counter;

    for counter = 0; bla bla bla

  • @zVenFTW

    Thanks, I tried that already and it didn't work. I was missing a semi-colon somewhere. I forget exactly, but I fixed it. 

  • @forexdragon Oh, well, congratulations :P

  • @zVenFTW

    Haha thanks. It was very frustrating. Also, for some reason I had to add an extra "\t" to get the data to line up properly in the columns.

  • Why am I getting a 'counter cannot be resolved' error on line 7? The print statement. I have rewrote it 3 times exactly and it is still wrong.

  • I broke it :/

    

  • Awesome tutorial!

  • JUMPED?

  • @itouchmaniac25

    for (int counter = 10 ; counter > 0 ;counter -- )

  • Hey @thenewboston , what would the for loop look like if I was going to make a countdown array from 10 to 1

  • i made a line down the middle with |

  • I'm so grateful for those little ''why this works'' at the end. Helps alot!

  • for System.out.println();

    type: syso

    press CTRL + SPACE

  • @SplendidTutorials WHAT!?!? You say this NOW !?!?! I gotta go back in time to the first video to warn the others!

  • @FalconPiss what was his comment?? ii cant find it!

  • @theXminecrafter You can type "syso" then press CTRL + SPACE to get System.out.println()

  • Comment removed

  • @SplendidTutorials

    Wow I rly like this :D thought it was a joke at first though ^^

  • @SplendidTutorials

    What is this? Witchcraft?!

  • tuna.java XD

  • @r3kikzta7teen a type of cheese

  • Great wrk..!!! two thumbs up!

    ur a grt teacher!!

  • @SplendidTutorials Or even easier: type "sout" then press TAB.

  • @BoomBucks hmm doesn't work for me (using eclipse) :(

  • @TheCarmacon Sorry, forgot to say, only works in NetBeans

  • @BoomBucks wow, that was a quick reply :) thanks mate!

  • @TheCarmacon You're welcome :)

  • He could probably make me understand Chinese.

    

  • He could probably make me understand Chinese.

  • @edotts28 Ni Hao edotts28.

    Wo shi Fredrik laoshi.

  • @SplendidTutorials I'm pretty sure he'd know about that, he probably doesn't do it for our benefit.

    Have you not noticed he right click -> copy: right click -> pastes? (Even though he obviously knows cntrl c -> cntrl v)

    He probably doesn't want any confusion... and thus does things in a very simple, straight forward manner.

  • @Thetimpson hahahah

    

  • @SplendidTutorials I love you

  • System.out.print("Bucky The Grappler");

  • @SplendidTutorials

    thanks, you rescued 2 years of my life ;)

  • Guys! if you don't want your Index to start with zero; Enter this in the last line of code:

    System.out.println(1+counter + "\t" + WhateverYourArrayNameIs[counte­r]);

    Thumbs up if you Got it :)

  • 4:51 ..

    how big your di...ehm array is ..

    guess what he was thinkin ;)

  • Comment removed

  • Thanks so much!!!! i didnt get it at first about 1-4 months ago and i went on and got lost! but then i came back and found YOUR tutorials.....THANK YOU

  • @SplendidTutorials It's possible he's only typing it out in full, for our benefit. Beginners may get a little confused when an entire line of code appears out of nowhere.

  • @SplendidTutorials Thank you! Thank you! I was getting tired of doing that myself. I didn't know there was a shortcut!

  • i get it...

  • I don't see why people skip array tutorials, since array is probably the most important thing in games, for example in minecraft map generator. (presuming most people start java coding to make games)

  • @kmncztms Minecraft was made in Eclipse :3

  • @kmncztms

    actually u're presuming wrong. not even half of ppl start java for making games.

    but anyway, anyone should learn arrays, its easy and helpful.

  • @kmncztms heh, I specificly went to the array tutorials because I know most basic stuffs already.

  • i also dont know why to skip that because it´s not really difficult i think

  • @SplendidTutorials <3<3<3

  • bucky i have a tip to help you teach use things you have taught us a lot and tell us what they do name everything so that we keep getting reminded of them

  • the 0th index LOL

  • Comment removed

  • Why did you put counter in bucky[counter]?

  • IVE GOT AN IDEA! Go to sleep with this video on loop!! i will be theNEWERboston

  • @GeezerGameGuideZ Haha, that was a good one! And how did it went? xD

  • @superdatamaskin thets just say ino Programming more than thenewboston, :L

    not realy, lol. im just going over these tuts over and over again trying to remeber

  • I HAVE SEEN SO MANY JAVA TUTORIALS! AND YOU WAS THE FIRST TO LET ME UNDERSTAND THIS PART!!!!!!!! THANK YOU MAN YOU ARE THE BEST!!! :D

  • Honestly, it would be more impressive if you were extremely elderly and could do Java. Young kids have more and more technology in their lives at an early age, so it's not surprising, really. Again, old people who can hack = awesome.

  • @Daim0th I can see it now. Granny hacking pacman or something, saying "When I was your age this was our Call of Duty!"

  • JCreator will not pop up the ".length" option like Eclipse does...

  • great! BUT I dont understand why at the end of code bucky[counter] get the values of the array! I mean I dont understand how the [counter] get the values of the array, please help!

  • @anderzom bucky[counter] means that the value of counter references an index of the bucky array. EXAMPLE: when counter is 0, bucky[counter] == bucky[0], and so forth with all the values.

  • @blizefy thanks but! I still confused beacuse, see this example:

    int bucky[] = {10,20,30};

    for (int counter=0; counter < bucky.length; counter++) { out.println(bucky[counter]);

    }

    why the render of the print show the 10,20,30

    I have in mind this result 0,1,2 why counter get the values inside bucky

    thank you!

  • @anderzom Okay, let me walk you through what happens there.

    int bucky[] = {10,20,30}; means that bucky[0] = 10, bucky[1] = 20, and bucky[2] = 30.

    The for loop has an iteration for each index of bucky, which means that the for loop will be worked through 3 times, since you have three indexes of bucky.

    The first time the for loop is iterated, counter is 0, bucky[counter] is the same as bucky[0], so it prints the VALUE of bucky[0] which is 10.

  • how to calculate average in table....

    example:

    month : jan feb mar apr may june

    number of units : 191 21 121 121 121 121

    assume the month and number of units in table.

    how to find average n lowest month sales..

  • im minus 3 years old and i can do this! woah!!!!!!

  • im pretty sure \t stands for tab

  • Very detailed tutorials. You have helped me a lot. I have already made over 20 applications. Thanks.

  • you are the only one who can teach me programming

  • Im a cat and I can do this...you all suck!

  • I'm still a fetus and I can do java!

  • @LyriiczBoii ha that's a good one +1

  • @Tolfing Funny thing is I just slapped my friend with a scorching hot piece of pizza. hahahhaa

  • @SplendidTutorials WOW that was honestly really useful. Glad I saw this comment.

  • Im only 4 bitches!

  • i'm new in Java programming. may i know what software in the clip is & where can i get it?

  • @keown83 Its eclipse he shows it in his third java tutorial

  • @keown83 Hi there! If you check out the second part of this tutorials you will get the answer. But I recommend you to check out the first one as well to get a full picture of it if you are new in programming.

  • Man, Bucky, if only you were around a few years back. I could have showed off programming skills in grade school!

  • lmao!! I thought this was a javascript tutorial part 28 until I saw the IDE :3

  • alright lets go ahead and press 4.

  • im 11 and im coding basic java,intermediate batch,some c,some c++,some javascript,basic html  suck on that stupid "computer" classes all you guys teach is well nothing bucky is my internet savor lol

  • @basketballdude138

    funny because you think you're a prodigy.

  • @mommyboy735 um dude you dont know me i dont think im  a prodigy

  • @mommyboy735 Why you be hatin bro

  • So if i was less than 15 years old and watched Java tutorials, that would imply I'm special because i know programming (to a small extent) and im not an adult?

    wtf is this shit?

  • I'm 14 and have been learning coding languages since about 12 1/2. I can now do atleast the fundamentals of Java, c++, html, xhtml, css, lua, and visual basics. Go young people!

  • Im only 12 and i can do html,css and javascript LOL

  • @xxadnandxx

    It's funny because you think you're a prodigy.

  • too lazy to press the space bar 5 times

    presses / and then t

  • hi can you teach me how to use the array values received from previous into the current form

  • 0th. i love saying when talking about arrays.

  • Not using a foreach loop? For shame...

  • @packetpirate Can you use for each loop on a fixed array?

  • @AdventKingBand Yes...

    for(int n : bucky) { System.out.println("Number: " + Integer.toString(n));

    }

  • @packetpirate Oh right right....I was flipping the position of the array and the variable...

  • This is awesome becouse cartmans like dam those are fat.

  • Keep this up.. Thanks you so much.. Your videos are surprisingly so helpful..

  • simply, the best

  • nice

    

  • The people who dislike this video deserve to be slapped in the face with a scorching hot pizza.

  • @Tolfing i think a scorching hot pizza is to good for them, slap them with a scorching hot stone :D

  • @Tolfing That doesn't seem right...

    Maybe shove it down their throat as well.

  • Comment removed

  • @Tolfing ouch

  • @Tolfing Or just wrap the warm melting cheese around their penis

  • what does the + sign in the println statement mean?

  • @0871356005

    ex:

    System.out.printline("My name is "+"Tarek")

    output is : My name is tarek

    its used if u want to output two diffrent things in da same line

  • @tarek903 asked my lecturer today and he said it was for concatenation (same as what you said ) so thanks anyway.

  • does anyone get the message of

    Exception in thread "main" java.lang.ArrayIndexOutOfBound­sException: 5 at apples.main(apples.java:7)

    at the bottom

  • 4 people don't like tuna

  • tab is 4 spaces

  • ppl are just disliking this so this video isn't a pefect 361-0 ratio.

  • @hall0fgamez

    I'm 11 and I know HTML, CSS, AS2, AS3, AND Javascript. :P

  • @TheScars75 i know HTML CSS and JAVA thats it

  • @TheScars75 okay no one really cares stop showing off

  • @RickyLopezMartinez

    Not really, HTML CSS and javascript should be really easy and AS2 and AS3 are related to eachother, they were pretty easy too and I don't really know everything I Could do on them

  • @TheScars75 Knowing code, and knowing a little bit of code are two different things entirely, besides stuff like html and javascript are about the easiest, most simple things to learn. Most languages are simple enough that one would have no reason to brag, try learning something like assembly and then you can brag all you want

  • @xMrElix

    Did you read my other comment where I pretty much said I wasn't trying to brag?

  • @hall0fgamez just because you can copy and paste code doesn't mean you 'can do' java, skiddie

  • @c0decub look, i'll have you know that i don't "copy and paste" Java i actually can make lots of things FROM SCRATCH. and what is a skiddie? also just because i'm only 13 does not make me a stupid moron! teenagers aren't stupid you just assume that.

  • @hall0fgamez i doubt it, but whatever

  • @c0decub go back to your lua in g-mod

  • @hall0fgamez go back to your minecrap and watching dj creamstar

  • @c0decub why thank you, i shall

  • @c0decub Hey, I just want to start off by saying that you have no idea what people are capable of. Sure, he may just be a bluffing wannabe, but you don't know that. Who knows if he may grow up to be a great programmer.

  • @ar4youready Yeah I know, I was just trolling him.

  • @hall0fgamez I'm 10. Suck on that.

  • @hall0fgamez HA, I'm 12 and I can do it!

  • @hall0fgamez I'm 11 and i can do java. I win.

  • @pokemonmaster551 But your name is pokemonmaster, so you fail :o

  • @hall0fgamez faggot a lot of people can do Java

  • @hall0fgamez im only 11 :P