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

Link to this comment:

Share to:

All Comments (132)

Sign In or Sign Up now to post a comment!
  • when i change member1 to member2 i still see Megan Fox 3

  • Hello? Housekeeping, Housekeeping...Housekeeping?

  • By the way: classifying the getMembers() function as static does not matter when you're using an object to reference it. So member1.getMembers(); ... the fact that getMembers() is static is irrelevant. Where static METHODS come in handy is, as Bucky said, when you want to call a method (such as getMembers to view members) without having to create an object.

  • @AlderDragon Thank you! I was wondering if getMembers() would work without being static and sure enough, it did.

  • @AlderDragon ... or, a non-static method worked when it was memberX.getMembers() as opposed to className.getMembers()...

  • "moron static" ????

    lol!

  • Look at this Bitch watch?v=QlEiwelbNGM&feature=re­lated

    Fuckin copied the whole series OMFG

  • @nishantve1 Holy crap, your right. That's pathetic.

  • @nishantve1 Gawd, even the names of the hotties! Well, at least he must have liked this series.

  • =)) nice learning material ... just lay off the "let's just go ahead's"

  • lets all join forces at the end of this series and make the ultimate game XD

  • @35spike2

    That would be awesome

  • static, moron!

  • what if the third method (the static method) didn't have the static keyword?

  • What is %S? @xxchidoriPOWERXx says its a String but what does it actually _do_?

  • @AphexRepublic "%s" prints the value of a string. So, in the print statement, if you put

    "%s", "name" it will work, but, if you put "%s", 7, it wont work since it is an integer

    hope this helps!

  • 3 Tuts left(Including this)!!!

  • @xJustas Sorry to disappoint you, but this series go up to Tutorial 87.

  • @xJustas Sorry to disappoint you, but this series go up to Tutorial 87...

    Go check it out for yourself.

  • So thats why it was saying "You're making a static reference to a non-static field".

  • Must....go...on...So...much...­command line....I want graphics!

  • can you have two different classes with the same static variable/object name and refer to both variable/object in your program? just wondering.

  • Ivanka Trump :3

  • He used Ctrl+V to paste!!!

  • I think a lot of people are eager to get to 50.

  • Anyone doing these for the android tutorials?

  • @TheJackACID Yessir. Saw the comment in the 1st android video, decided to learn this.

  • Why can't we use System,out,println((name of class).getMembers()) for Strings, I need help :(

  • woo Minecrafters!

  • 1 step closer to tutorial 50: Graphical User Interface GUI :D

  • Perilously close to the magical tutorial 50 that I'm looking forward to!

  • You have to give courses at the MIT, you're very understable, java is so easy with you!!!

  • A point of confusion: members of the class, vs members of the club

    lol

  • number 50 sounds cool.must...get...there

  • @chrisall76 I've been eyeballing tutorials 50/51 since day one but I promised myself I would watch all the tutorials up until then.

  • Man you've learned more java m8s than most of mine teachers :D

  • 47 and going

  • I will finish number 49 TODAY! I've been slacking

    

  • Didn't get it till this video thanks bucky <3 took a little messing around with to fully get it but i think i have it for the most part now

  • i always had problems with static..

    tx for the VDO dude

  • its late at night and my goal is to get to part 50 tonight,, like the last guy... -_-

  • Have - to - get - to - part - 50 - today...

  • @ItzTheFury *At part 50* So - close. Must - finish - series.

  • @ItzTheFury So do I. My programming teacher had to cancel a few classes due to illness and also got behind on marking, so we all have to watch up to and including 50. But we started from 38, so it's not too bad, I guess.

  • @bluewilliam your teacher just has you watch these instead of actually teaching?

  • @11011101111 Yes, but it was extraordinary - we were behind schedule and had to get caught up.

  • @11011101111 (We're back to teaching again.)

  • @bluewilliam that's cool, just surprising to me.

  • The only java tuts where megan fox pot pie and tuna are all said in the same vid

  • Only thing I don't understand is why the method getMembers() has to be static, even if its just returning a variable.

  • @xFelicianoX The same reason why public static void main() Is static

  • @xFelicianoX The same reason why public static void main() Is static 6:00

  • 63 whoop

    

  • yay for frariables.

  • Thank you". Ive been trying to make a static method like a Math class, and call it without an object. Thank u so much :):):)

  • I think that the minecrafters stopped by now

  • @coolshoos lmao the minecrafters didn't have the persistence to make it this far xD

  • @seed419 I haven't stopped yet. xD

  • @seed419 I did! But then again I've been doing C++ for awhile now :]

  • @seed419

    Guess i'm not a minecrafter then....

  • @seed419 i'm a minecrafter.

  • @AccendoCerebrum so am I shhh :)

  • @seed419 iam a mincrafter u b****

  • @seed419 im a minecrafter, but didnt need those tuts for minecraft mods lol personal bsns

  • @seed419 I did. Though I'm not learning for that.

  • @coolshoos NOPE

  • @coolshoos I actually did.

  • @coolshoos I'm a minecrafter but I'm doing this cos I want to learn java

  • @coolshoos Nah, I'm still here. But I'm not interested in making mods tho, I'M GONNA MAKE MY OWN GAME!

  • @coolshoos Yeah the mod people are gone i think. I might end up useing this for a mod for minecraft :P But i might also just go and become a game creator myself.

  • @coolshoos Nope. I'm still here!

  • @FalconFetus8 hand in there bro we can do it!

  • @coolshoos I'm still here! :3

    Well, I'm learning Java since I rather learn Java than C# or C++ and so I can create rather simple games.

    (But I'm going to try out Minecraft modding anyways~ ^-^)

  • @coolshoos Nope. I'm not only doing this for minecraft, I'm doing it for a school project :P

  • @coolshoos Not me :)

    Well, I make other stuff too :D

  • @coolshoos Not worth it :D

  • @coolshoos

    i am a minecrafter, but I don't plan on making mods. I'm going to make my own freakin' game. :D

  • @coolshoos Wrong!!!

  • @coolshoos Only the impatient ones.

    Those with an actual interest in programming will probably go further.

  • "in stuff like math" I Lol'd..

  • WHAT DOWS THE "%" MEAN TO JAVA?

  • @RaymundoGabriel When you're formatting strings either using String.format or System.out.printf %s replaces a the actual string in the first argument like this e.g. System.out.printf("%s", name). You see here, we've put %s to be a representative of an actual name variable, and then in the second argument (seperated with a comma) we told Java what string will that be. Hope it helps. :)

  • @cvrco15 hThanks , Saludos desde Mexico , (hello from Mexico)

  • @RaymundoGabriel saludos ;)

  • does System.out.println(tuna.getMem­bers()); only work for static variables?

  • @c0decub nope it works with any variables and methods ;) As long as it does return something and not a void.

  • @threeclock i tried returning a private String first; but it didn't work unless it was static

  • @threeclock so yes, you have to make your return a public static String getFirst()

  • what is %S?

  • @skinassz String

  • @skinassz According to what I looked up, when you use "printf" to output data, %s represents String data while other letters like %d represent some other data type (in that case, it's int or number value).

  • MAN i finaly understood why! WHY! TY for these awesome tutorials! Can't w8 for the GUI!

  • I've learned more from you in 1 day than 1 month in class! Thanks Bucky!!

  • @Fuman2211 This is correct.

  • You dont Need to make the getMembers static since it outputs a static variable it will output the same thing no matter which object you use it with.

  • if you do not make getMembers() static, then you explicitly need an instance of the class, (an object), in order to access the private static variable members. As such, assume that for some reason the program requires the data in the variable members, but tuna has yet to be instantiated,(no tuna object exists). Well, if getMembers() is static then the problem is solved and we use tuna.getMembers() as opposed to relying on some object of type tuna.

  • @Fuman2211 in other words, had members been public, then we could have said tuna.members and accessed the variable members directly via an explicit call using the class name. However, since members is private, the class tuna cannot access it directly and therefore needs a helper method, namely getMembers(). If getMembers() is not static then only an object of type tuna can use it. But if it is static, then it can be called explicitly by the class tuna via tuna.getMembers().

  • Thanks 4 the explanation, quite clear now

  • @TheHelpingangel WELL IM Guessing soemwhere in ur tuna class you used 'tuna ' as your object...............

  • 0:45 whaatt? supenough?

  • @mepicaelsobaco "Simple enough" :|

  • From 5:00 you keep saying object but actually what you wanted to say is instances. Those are instances of objects.

  • @danieLs0xFF Instances and Objects mean the same thing, those are just different terms.

  • Was I the only one thinking "getLaid"? Rofl

  • it took me minutes to understand what u teach, but at the Uni , it is longer.

  • Who's bright idea was it to make Random class's methods non static? :(

  • bucky is the best...........

  • SUPERHERO STATIC SHOCK. lol when static is mention static shock comes to my mind.

  • Well done bucky...

  • Constructor

  • bucky you could have also referenced your main method for a example, since all java programs run main method first, its a static method which doesnt need a object so it can run.

  • not a good example for class varable

    does any one tell me what mean

    public static final int kk=4;

    is it static/

    i think it constant

    plz reply me at

    skype/googlr talk =hmk25061984

  • watch the next tutorial and it should be clear.

    static = applies to all objects created

    final = non modifiable (constant)

    so...static final means it will be shared among all objects created from the class. Because its final, the objects can not change this variable once it is initialised. Im guessing this would be useful for things such as ... pi? In a maths program you might declare pi and make it static final as it is not something that changes, and applies to a number of things within maths

  • @xXMikeScottXx

    Pi is built in java.

    Try Math.PI :)

    

  • thanks

  • Static variables are known as Class variables btw.

  • Thanks! =D

  • Thanks!

    Nice trick!

  • Comment removed

  • FIFTH!

  • FOURTH!

  • @thenewboston Hey, thanks for the help with java, always wanted to learn it lol

  • THIRD!

  • FIRST!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more