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

Link to this comment:

Share to:

All Comments (347)

Sign In or Sign Up now to post a comment!
  • Watched a lot of these in a row then got distracted by the NixiePixel Barbie Seahorse video :)

  • THAAAANKS!!!!!!!

  • Bucky: "It can only store values of the same data type"

    Me: T.T "Java is an OOP language, so ..."

    My code: Object array[] = {"hi",5};

  • Weird, but the first three values he set are counting down, 87 is 8,7, 543 is 5,4,3 , 65 is 6,5. ZOMG

  • NOTE: With v1.7.x of Eclipse you can't do:

    bucky[0]=1;

    bucky[1]=2;

    bucky[9]=3;

  • Youre the best thank you.

  • System.out.println("Number of tuts to go" + (87-27));

  • @XxxTheProGamerzxxX And then there are the intermediate ones...

  • Comment removed

  • Can you use arrays for save file in games eg to store the location of an object?

  • Which IDE program are you using?

  • @t6omada3 Oh god. You really shouldn't be hopping on at the 27th tutorial. Go back to the 1st.

  • Thumbs up for buckyyy!! ^^

  • i love your tutorials they are so helpful and exciting i cant stop watching them

  • System.out.thatswhatshesaid

  • You are really good at making tutorial videos... thank you so much for uploading this!

  • Comment removed

  • Thats what she said... Priceless :)

  • watch this video!!!, arrays are used ALOT in a program!

  • I have exam after 5 hours

    and this is better than stadying book ...

  • The only thing I think would make these better would be adding examples of how these are used in real applications i.e. the dice thing would be used in games or something, something to tie it together with what we already know

  • im having a problem. When i try to run my array with both methods that Bucky showed us to write the arrays, i get a message saying Exception in thread "main" java.lang.ArrayIndexOutOfBound­sException: 6 at Arrays.main(Arrays.java:25).

    i get an answer to the first array method, but then this message appears. CAN ANYONE HELP ME PLZ!!! IT WOULD BE GREATLY APPRECIATED!!!

  • @Decepticons211 what's the code u type,write it here....

  • BTW, The reason that arrays and other objects like to start counting at zero is because of the electronic memory chips that are really doing the work. They can start to store information when their little binary resisters are completely empty, that is value 0000. If you don't use location 0000 then you are wasting space, and back in the earily days of computers you needed every memory location you could get.

  • @Shakespeare1612 Your explanation makes little sense. Google "indices beginning at 0".

  • Uh, I Was Wondering If You Can Use Strings With Arrays. Is That Possible?

  • @thecomputerkid11925

    yup, and don't ask questions that are very very easy to try by yourself :)

  • @thecomputerkid11925 Yes. Instead of int[] Array= {1,2,3};

    You can do String[] Array = {"Cat","Dog","Mouse};

  • @firecopy Oops error. String[] Array = {"Cat", "Dog", "Mouse"};

    (Forgot the " after Mouse)

    

  • "that´s what she said" true, true

  • So arrays are basicly shortcuts?

  • Arrays are my friends now :3

  • So could an array serve as a replacement to having multiple variables?

  • To build on iEditEffects's comment, what I'm doing is clicking New Java class for each tutorial, pretty much copying his code, and adding my own comments where necessary as I watch and learn.

    For those of you who don't know, to add a one-line comment, put // before it. To add a multiple-line comment, put /* at the beginning and */ at the end. Eclipse should automatically put a * at the beginning of every line but the first and last.

  • What's the difference between int[] bucky and int bucky[] ?

  • @opeAFromRSBot preference

  • @opeAFromRSBot they work the same

  • @opeAFromRSBot

    I'm pretty sure there's no difference.

  • How do we prompt the user to enter in the array values and then have them print out for the user?

  • An array is a variable that stores values of the same data type.

  • Is there some way to have a variable "point" to an index in an array?

    For example:

    int index=5;

    int array[]={2,5,3,8,1,6,4];

    System.out.println(array[index­]);

    would print "1"?

  • @FalconFetus8 no, it would say 6 ...

  • @FalconFetus8 I'm not sure if anyone's given you an answer to this yet. According do your array of int array[]={2,5,3,8,1,6,4]; you'd have to do (array[4]) if you wanted to print out 1, because the values in the array start from index 0, So, array[0] would print 2, array[1] would print 5.

  • for people struggling to remember everything. Just right everything down and make a java file that you can go to for review.

    THUMBS UP SO OTHERS CAN SEE.

  • Dear youtube,

    this video only shows my like, please fix this, iediteffects.

  • JADIJADIJATA...

  • Nice job, liked and subscribed.

  • I'm loving your videos :). I'm 15 and my goal is to create an Operating System in the future. thank you :D

    while (15 > 0)

    { System.out.println("<3");

    }

  • @uGxDemiZe You might want to learn "Assembly" language too, and have fun with that HAHAHAHAHA! :D

  • @uGxDemiZe

    Lines of code to create:

    Windows XP - 45,000,000

    Linux Kernel 2.6.35 - 13,500,000

    Android OS - 12,141,638

    MySQL - 1,900,000

  • LOL Bucky!! 4:44

  • Comment removed

  • Buck loves to smack that mouse button when he runs the programs.

  • AMAZING TUTORIAL,thanks dude

    you only forgot one important thing:AN ARRAY IS AN OBJECT,NOT A VARIABLE.

    and thus,thats the reason why you used NEW before declaring the data type (INT,in this case)

  • Comment removed

  • nevermind

    

  • if i wanted to create an array of variables how would i do so?

  • How do you put in a method so that you can add something to the array list after running the program ? For example by typing something into a menu ....

  • thank you u really helped me

  • @kile392jr1 Same here

  • lmao... that what she said

  • Bucky I love you

  • @kile392jr1 Reach for the stars, I guess, hahaha.

  • :D This looks very useful in the future!

  • if you will look at the minecraft blocks file (cant remmber the exact name) you will see the array of blocks whit the value of them exactly like in this totrial... :D

  • I feel like these tutorials to help me get started but I heard there was a book called Head First Java, got it for free and I'm loving the book, from 3 chapters, I learned about arrays and more about them. Plus more.

  • haha thats what she said ..

    best teacher ever

  • Comment removed

  • minecraft?

  • @Artickkingdom the most awesome 3d game if you haven't seen it.

  • Every video that I know, has a lot of videos in the beginning and ends up getting less and less

  • can i use arrays to create objects? if i wanted to create many objects with the same class?

  • @Mordianmate i think what you mean is to store a lot of objects of the same class in an array, the fact is that you can, but to initialize those objects, you might need a for loop to store them in the array, so you would make an array with the type "classname" = new classname []; and then in the for loop, add as many objects as you want.

  • Those 8 who disliked is a java instructor haha

  • Does this mean that Sean Day[9] Plott is an array?

  • Ok, before I watch this tutorial, I just want to say that the one program language I tried before Java, was Expression 2. This was a garrysmod programming system. I was really good but once I hit arrays, I just sort of fell out of it because I never understood it, I kind of grasp the premise of arrays now, so lets hope this video can get the point across... I already have the chills o.0

  • @RazorSRaider Well, it's official, you got the point across to me. I'm actually in shock writing this because you just taught me what hundreds of garrysmod players could not. I think I love you o.0

  • BUCKY ZERO ADIADIADA LOL!

  • I felt so stupid at the end of the video when I went to try and un-highlight the text :S

  • @loesch94 hahahahaahahhaah, i did the same

  • String bucky[]={great teacher,awesome person,cool guy,very _helpful to_ me};

    System.out.Println("newboston bucky is a ",bucky[0]);

    output: newboston bucky is s great teacher

  • Comment removed

  • I WAS JUST TRYING TO REMEMBER how to make a string variable. thank you for this comment lmao.. but! thats wrong xP. make sure you put quotes around each word in your string array.

  • java told me, alright, you are about to do an array!

  • Comment removed

  • @ReacTioNxSnipeZHD I'm actually a Minecrafter... And a top commentor lol

  • I am the most impatient person, and almost every lessons before this I just skipped things and didn't get it D: Bucky, u are a great teacher, and I most certainly understand Java and programming a million times better now :)

  • Well it's their loss but even if I know C++ basics and there are a lot of similarities in loops etc. even if I don't learn anything new I go over each tutorial writing it out every single time, because it's the best way to learn IMHO :)

  • the curly bracket things are called keys...

  • People shouldn't skip videos. They need to know this stuff.

  • Thx for the lessons ive been watching for awhile hopefully i can master java with your lessons

  • tutorial 26 had 94,686 views but

    tutorial 27 had 113,775 views

    if ur only learning java it prob best to watch them all. as clearly seen here ppl are skipping stuff.

  • @BUCKYAUSTIN either that or people already know the math class but dont know arrays

  • @BUCKYAUSTIN

    I am learning Java at school and am only using bucky's tutorials when I need some extra explanation (because our teacher doesn't explain stuff, all textbook). So when I get stuck sometimes I will watch his tutorial multiple times thus increasing the view count. I assume some others do the same thing.

  • @BUCKYAUSTIN What if one person is watching a video more than once because they need a refresher on that topic, or that topic is harder and they forget the code from that tutorial.

  • @BUCKYAUSTIN I have watched this video many times because I dont really get it. the last one i only watched once

  • @theXminecrafter Just to tell ya dat was my twin who made that comment.... I have posted this before on this video.... but everyone feels like they should comment.... then i get spam emails telling me people have replied to me on this video even thou i didnt comment in the first place..... act i better just put that below my bro's post cause im getting sick of this.... no offence thou.... Array and array lists, in my opinion are the hardest part of java...

  • @theXminecrafter i got it the first time.. :P

  • @theXminecrafter

    What u dont understand? in bucky is adding numbers..2,4,5,7,9, after he uses System.out.println..and he choses the number 2 in the list.. which is 5 because it starts from 0... 0=2 1=4 2=5 3=6 etc

  • @theXminecrafter its so easy,u just have one variable with many values

  • @theXminecrafter i used to imagin arrays as a street, for e.g you have 20 houses in one street, 0-19 you pop the data into each house. all the houses are all contained in a street call "paper street" but have individual addresses for each house. apply that concept to arrays and your done!

  • @BUCKYAUSTIN This was my twin bro who made this comment above.... Please dont send me replies... there spamming my gmail.... My brother when he made this comment was only in his 2nd semester of 3 of which he is learning java.... So he was taught most of java even before he watched... He was ignorant to those people learning off bucky's tutorials.... He thought they were just for revision... not learning....

  • @BUCKYAUSTIN reply

  • @BUCKYAUSTIN it also means people are randomly searching up java how to videos and have stumpled upon this one more then the last one

  • @BUCKYAUSTIN They may be (re)watching the parts they are having trouble on. I know if I have a problem in one of my programming classes youtube is the first place I goto.

  • The nonchalant "that's what she said" at 4:47 was CLASSIC!

  • bucky[Bucky]=AWSOME!!!!!!!!!!!­!!!!

  • bucky.length... answered my own question

  • Is there a way to find out how many elements are in the array?

  • lol 777 likes and 7 dislike :)

  • Thats what she said.

  • 4:45 BEST PART!

  • click the ads for bucky!

  • if i wanted to do a string array, what would i type? string bucky[] doesn't work...

  • @Squireeee I'm not sure, but I think that since you're using strings, you'll have to initialize it with data within double quotes, e.g. "bucky" instead of bucky. Try that.

  • @Squireeee You do

    String bucky = new String[10];

    

  • @kcolin6701 thanks

  • Java tutorial 1 - 750,000+ views.

    Java tutorial 5 - 250,000+ views

    Java tutorial 27 - 99,906 views

    Impatience kills ambition.

  • @Gyohdon Yeah. :D Also the Minecraft-Newbies, that think: "Oh, imma go modding!" *watches 1st tut* "Oh, looks easy" ... *watches 5th tut* "Uhm... wait what? Oh, that's too high for me, imma quit!"

    That's my definition for it ^^

  • @TheKyshu lol, I've got some crazy thumbs up, hahaha

  • @TheKyshu 100% Correct

  • @TheKyshu I'M NOT GIVING UP THAT EASILY! >:D

  • @chu240 Haha ^^ Great :D Me neither! Btw, I was actually starting with Java, because I heard about it from Minecraft and modding, but now I just learn it out of interest... AND for modding =D

  • @TheKyshu yeah its pretty funny that most of the comments are from people with minecraft avatars :p

    i'm here because I'm bored and java seems pretty easy i still get it till now

  • @janvoslos Hm? People with Minecraft avatars? *looks at himself* Cough. I dont think so. :p

  • @janvoslos Yeah, me, too :p Actually, I am like 20 videos ahead now, was looking for some new stuff, as I know all this from other languages ;) Now it gets interesting from #40 upwards :D

  • @TheKyshu Nice ! i know the standard from C# and i have done a bit of objective-C

    but gl !

  • @TheKyshu btw look at the first "easy" vids VERY much minecraft avatars around these videos not so many :p btw i have done some modding with my knowledge :p

  • @janvoslos Me, too, but before I came to Bucky :P I had soem other text-based tut, but it wasnt as good.

    And I based my very simple mod on ModLoader ^^

  • @Gyohdon

    Java tutorial 29- 83,235 views

    Java tutorial 30- 93,344 views

    Well it looks like some programmers and going to go

    'I know array elements as counters but not sure of other elements'

  • @Gyohdon yes, i think people also want to skip to places they want to got to.... see episode 50 or 51, where he starts using gui. it has 150 k views.

  • @Gyohdon weedin out tha rest...lol

  • @Gyohdon yes i am thinking the same thing!!!

  • @Gyohdon truly...

  • @Gyohdon

    tutorial 1 has lots of views because every time i go on bucky's playlist it shows the first vid

  • @Gyohdon If they had the ambition, they wouldn't be impatient.

  • @Gyohdon

    Amen! it took me 2 years to finally be fluid in programming and another 2 years to be "good" I anticipate another 6 to become an expert :-)

  • @Gyohdon I agree, impatience kills ambition. I gave up on this 3 months ago, i decided to come back, not sure if i would keep going, then i saw your comment.

  • @DarthLOL293 I bet you feel bad about yourself now =P

  • @Gyohdon but we go on!

  • Bucky you are the best!

  • WOOHOOO FOR BOSTON BIG FAN BRO TY FOR HELP!

  • @xxcky1 fan bro...

  • @toy741life 0_o yep he's a beast

  • 7 Didnt want to get the surprise cake.

  • commenting on the amount of dislikes makes people want to dislike it to be spiteful.

    So don't for the sake of bucky

  • "lets tighten this up alittle bit...thats what she said!"

    haha i love you bucky so good at teaching me and also know how to use humor along the way every now and then, like your 1st ever gf..."she was a babe" haha

  • for(int i=0;i<10;i++){ System.out.println(bucky[i]); // this prints the whole array,..SRBIJA!

  • @FreeeBirdie for (i=0;i<=10;i++) { for (j=0;j<=i;j++) { System.out.println(bucky[i])} System.out.println("\n"); } Will make a pyramid !

  • hey guys ive been searching for an object orientated programming array for java tutorial, is there one on this channel?

  • How to Scan string and put it into array ??

  • @turbocobol yes the same question i have?

  • @turbocobol

    import the scanner, and myArray[aNumber] = yourScanner.nextLine();

  • It must be 'int[] numbers' *NOT* 'int numbers[]'!

  • Genius just Genius!

  • instead of erasing your work, you can press crtl + 7 to make everything into a comment, and press crtl + 7 again when you want to use it or run it again.

  • "thats what she said" lol

  • array[1]subscribtvalue, array[2]subscrblblblbl :D ^^

  • System.out.println("Let's tighten this up a little bit. That's what she said.");

    LOL

  • I have always watched Youtube videos for calc and diff eq help. After all these times of being butchered by java, why didn't I think about Youtube?!

  • can someone please help me? I am try to using what i learned from these great tuts to make a tutorial but i forget how to set user input to a variable. what is the code for doing that? like it would say "Type your first num: " then you would type it in then store it in a variable, then it would say "Type your second num: " then you would type it in and it would store the second number in a variable say "your answer is: num1+num2"

  • @phi11ykid96 check ur inbox

  • @phi11ykid96 you probably shouldnt make a tutorial if you dont know how to do it. Anyway, you could just import a scanner and then have more then one scanner variable. Store those in a variable and then add them together and output it. Here's a basic example:

  • @phi11ykid96 import java.util.Scanner;

    public class Learning{ public static void main(String args[]){ Scanner x = new Scanner(System.in); Scanner y = new Scanner(System.in); double z; double s; double r; System.out.println("Enter first number."); z = x.nextDouble();

    System.out.println("Enter second number.");

    s = y.nextDouble(); r = s + z; System.out.println("Your answer is "+ r); }

    }