Java Programming Tutorial - 45 - EnumSet range

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 383

  • @markospolos763
    @markospolos763 9 лет назад +484

    Damn Bucky!!!
    Treating girls like objects... ts ts ts

    • @erwincabatingan675
      @erwincabatingan675 9 лет назад +5

      Marko Polo lol

    • @sabienul
      @sabienul 9 лет назад +15

      Marko Polo I'm calling Tumblr

    • @IslamElshobokshy
      @IslamElshobokshy 9 лет назад +6

      +Marko Polo Ikr? He has a gf each year or so XD

    • @Hathekat
      @Hathekat 9 лет назад +4

      +Marko Polo nice one

    • @hainguyenau
      @hainguyenau 9 лет назад +3

      +Marko Polo Bucky's name is in the list of objects too

  • @moyashimugiwara3661
    @moyashimugiwara3661 8 лет назад +54

    From these tutorials I learned more than just Java, the fact that Bucky was a fuckboy in his prime is confirmed.

  • @datojokhadze7542
    @datojokhadze7542 9 лет назад +234

    after programming,we demand you to make "How to get girlfriend" tutorial xD

  • @IanasAlexandruCornel
    @IanasAlexandruCornel 9 лет назад +23

    Bucky your tutorials are funny and very helpfull at the same time , i never get bored while following them, after i finnish the java intermediate, i will start with your android series , thanks for taking the time to make these , i subscribed to your channel !

  • @SuperSherby
    @SuperSherby 8 лет назад +13

    Lol you killed me at "so that's your tutorial of my former love life" hahah
    Adding humor to it does help learning things a lot faster Thanks

  • @kumar_1337
    @kumar_1337 8 лет назад +116

    Who else is hype for GUI tuts and want to finish these ASAP? :3

  • @spindola245
    @spindola245 8 лет назад

    Thank you for a clear and concise explanation on Enum and EnumSet. Though I have several years' experience of Java under my belt, I had never had any use for Enums, but now I can think of several. Thanks much again.

  • @physicsimpossible73
    @physicsimpossible73 11 лет назад +15

    omg almost at the GUI tutorial :D so excited!!

    • @Kiwiscore
      @Kiwiscore 11 лет назад +1

      so am i, i thought we'd see the GUI in the advanced playlist!!!

  • @lemmy7926
    @lemmy7926 10 лет назад +2

    yep, GUI! The thing everyone's excited for, including me! These past tutorials have been confusing...But I'll probably look them up.

  • @breakdancerQ
    @breakdancerQ 8 лет назад +146

    I can't practise this, as I don't have any former girlfriends to put in !?!

    • @nguyenngocngan3228
      @nguyenngocngan3228 8 лет назад +16

      Your ex-boyfriends work great the same! :-)

    • @breakdancerQ
      @breakdancerQ 8 лет назад +29

      Nguyen Ngoc Ngan Ah thanks man, for allowing me to write down your name.
      Big kiss xxx!

    • @asp3766
      @asp3766 8 лет назад +2

      I can feel u ;(

    • @cyberyuki6001
      @cyberyuki6001 7 лет назад +7

      Is it bad I put food name instead of real people name?

    • @cyberyuki6001
      @cyberyuki6001 7 лет назад +1

      Dan Kerr Amount of sadness :(

  • @DavidM_
    @DavidM_ 7 лет назад +2

    "We don't have time to think, we have time to do" - it was so deep ;|

  • @traciedavid8092
    @traciedavid8092 8 лет назад +18

    @bucky is this some kind of softporn turorial any way i love your style man:(

  • @saurabhsharma6939
    @saurabhsharma6939 8 лет назад

    shit ! your dialogue"We got no time to think but we got time to do" was soooo dope

  • @ankushsam1470
    @ankushsam1470 6 лет назад

    Hey Bucky,
    I love your tutorials. I just found another way to output the object values and properties. I just caught your word that Java takes Enumeration as Array.
    package ankush;
    // The other method to output Enumeration objects.
    // Remember Enum Class is actually an Array
    public class Enum_Out2 {
    public static void main(String[] args) {
    Enumeration person[] = Enumeration.values();
    for (int i =0; i

  • @fogorionfog2096
    @fogorionfog2096 9 лет назад +1

    Oh dude I love this Tutorial I didn´t watch all of your videos but if you don´t use the short cuts for System.out.println(...); you can print sysout and press Strg + Space so you don´t have to type all letter of System.out.println(...); and thanx for your tutorial I really enjoy it. :-D

  • @AlaaAlMaliki
    @AlaaAlMaliki 14 лет назад

    well i am now got to 45 tut and don't now how many left, but it is really interesting and never get fed up with.thanks for all of that

  • @Fbiman93
    @Fbiman93 14 лет назад

    "Oh, erin. What could have been."
    She missed out, bucky. Now you're a super-genius!

  • @vangarecord
    @vangarecord 11 лет назад +4

    Omg you have range for your FORMER LOVE LIFE ......Java will make a built in class "BuckySet" in future.....

  • @meetshah4432
    @meetshah4432 3 года назад +5

    Me not getting a single girlfriend.
    Bucky: see my list

  • @asifshahriar4503
    @asifshahriar4503 4 года назад +1

    My man got laid 4 times by 14, man that's exceptional talent

  • @pUpzorz
    @pUpzorz 13 лет назад +1

    For those having errors, remember that functions/built in functions are case-sensitive. I for example forgot to have a capital E on EnumSet which gave me an error.

  • @ChiefHagno
    @ChiefHagno 11 лет назад +14

    GUI. Here I come!

  • @kennethbgoodin
    @kennethbgoodin 11 лет назад

    For anyone confused, enumerations have been superceded in java; although not deprecated, their use is considered obsolete for new code.

  • @morganantonsen4714
    @morganantonsen4714 10 лет назад

    bucky you prolly get loads of thanks from people. here i give u mine too :) you make programminf fun for me

  • @MrNateStC
    @MrNateStC 5 лет назад +1

    the thought of "tuna.candy" makes me want to barf

  • @nhardy96
    @nhardy96 12 лет назад

    From what I remember from previous tutorials of his, if the body of the block is only one line, curly braces are optional.

  • @LawenceCodye
    @LawenceCodye 15 лет назад

    this is just great...on to the next tutorial before 2k10 arrives...

  • @Adi_Zlokob_1986
    @Adi_Zlokob_1986 7 лет назад +1

    by the end of the java tutorial, besides knowing basics in java programming, we will also be able to write an biographic essay on "love memoirs by bucky" :D

  • @ayman-ko
    @ayman-ko 11 лет назад +1

    LOVE YOUR VIDEO,
    YOU'RE AWESOME TEACHER .. ^^

  • @Saruman_Kaz
    @Saruman_Kaz 15 лет назад

    THANK YOU!
    Watched them all through..

  • @nhardy96
    @nhardy96 12 лет назад

    Oh, Absolutely. I agree 100%. You certainly wouldn't see me doing it like that!

  • @NeuroticPCGamer
    @NeuroticPCGamer 13 лет назад

    "We don't have time to think, just time to do" That can be applied to all situations in life :p

  • @Yahyazini
    @Yahyazini 12 лет назад

    You really made it fun bro!!!

  • @ajay000003
    @ajay000003 7 лет назад +1

    A programmer, chemistry, biology teacher, now a playboy. next johnny Sins

  • @forevatrolling
    @forevatrolling 12 лет назад

    better and easier than i thought it would be...

  • @ed-edd-n-eddy
    @ed-edd-n-eddy 12 лет назад

    I don't plan to be a programmer as a career I want to be a computer engineer, but I am learning this as a hobby/past time.

  • @Whiteroca
    @Whiteroca 11 лет назад

    "We don't have time to think, we only have time to DO."
    -Bucky

  • @themountains1701
    @themountains1701 2 года назад +2

    Man was on a mission back then😂😂

    • @abikyoukan2
      @abikyoukan2 2 года назад

      bucky was going crazy 😂😂

  • @buxilala
    @buxilala 12 лет назад

    bucky gfs stories motivates me to keep learning java :P

  • @LordJogaBonito
    @LordJogaBonito 12 лет назад

    "We don't have time to think, we just have time to do." ~ Philosopher Bucky

  • @Msz9Music
    @Msz9Music 13 лет назад +1

    "In case your just joining us"
    It's the 45th video!

  • @danutz0501
    @danutz0501 11 лет назад

    Everything in java is an object(instance of a class) even the primitive data types.
    String data types like "bucky" is an instance of class String. So people is an instance of enum tuna.

  • @MonteFisto100
    @MonteFisto100 9 лет назад +9

    nice tutorial, helped me a lot, but seriously man, when i was 10 i played with legos...

    • @NonyoLi
      @NonyoLi 8 лет назад

      +MonteFisto100 legoes were relatively new then how old are you?

    • @scooby-dooafterlife6969
      @scooby-dooafterlife6969 3 года назад

      @@NonyoLi guess you will never know...

  • @kennethbgoodin
    @kennethbgoodin 11 лет назад

    He uses tuna people to create an object, people, that references the entire tuna class. He could use anything there, he just chose to use people because that's what the class is working with.

  • @lokeshbajracharya5190
    @lokeshbajracharya5190 8 лет назад

    MANNNNN, you are great!!

  • @pixelrabbit261
    @pixelrabbit261 8 лет назад +1

    I agree with UNST4BL3, what use is this? Practical example please.

  • @MuzgontarAco
    @MuzgontarAco 12 лет назад

    your tutorials make me hungry !

  • @almuntasirabir4511
    @almuntasirabir4511 7 лет назад

    first video was seen by 4.5 million people now it's only .2 million. Hang in there buddy :p

  • @b.petrushchak
    @b.petrushchak 9 лет назад +48

    As it seems there were at least 18 ex-girlfriends who watched this video and put dislike:)

    • @NonyoLi
      @NonyoLi 8 лет назад

      +Petrushchak Bohdan 20 now XD

    • @TheMegaGamerLT
      @TheMegaGamerLT 7 лет назад

      24 now

    • @djoverkin
      @djoverkin 5 лет назад

      32 now, jesus, his parents should have spayed him before puberty. Imagine if he actually got to Erin before Jacksfilms did

    • @rooodis456
      @rooodis456 3 года назад

      38 now...

  • @nikhilrathore2385
    @nikhilrathore2385 7 лет назад +1

    at 4:53 why do we write tuna.kelsey
    instead we should have written tuna kelsey as Kelsey is an object and not an instance or variable of class

  • @Celtic_Eye
    @Celtic_Eye 11 лет назад

    It is not the {} ,that is the space needed here "%s\t%s space here \t%s
    " and then the output will be nice and neat in 2 columns.

  • @jhdoubleoseven
    @jhdoubleoseven 13 лет назад

    And that was a quick tutorial on my former love live!

  • @TheCarnage90
    @TheCarnage90 11 лет назад

    Anyone know a way to give the objects description and birthday for user input? When I try description and birthday can not be arguments in the object.

  • @thePadlockesTech
    @thePadlockesTech 11 лет назад

    Would you have to use the .range array multiple times to do things inbetween each other. Like say you wanted to do bucky - kelsey then candy - erin?

  • @manpildo
    @manpildo 12 лет назад

    I made it this far, can't stop now! Onto the next video... everybody else, good luck ;)

  • @101orbitaldefence
    @101orbitaldefence 9 лет назад +5

    Damn this guys a playa

  • @cjs2017MCF
    @cjs2017MCF 12 лет назад

    yay nicole is back!

  • @356379783
    @356379783 10 лет назад +24

    lol so many girlfriends, good for u man.

  • @janeuarymmiv
    @janeuarymmiv 15 лет назад

    GrEat",)
    I can definitely used this so soon

  • @arifahmad5676
    @arifahmad5676 6 лет назад

    hey what was the use of tune constructor when we never passes the description and birthday value from main class?

  • @rohitvarmabhupathiraju5238
    @rohitvarmabhupathiraju5238 9 лет назад

    Shouldn't we create any object reference for 'EnumSet' class? and the 'enum' in general? for eg: enum people = new enum(); ...something like this

  • @lopyus
    @lopyus 10 лет назад +5

    After writing about erin you sounded like you were dreaming

  • @FussyJ-L
    @FussyJ-L 6 лет назад

    "we dont have time to think, we only have time to do", that was a good one

  • @pixelrabbit261
    @pixelrabbit261 8 лет назад +2

    erin was the one who was actually a real person eh bucky?

  • @Xeinnex1
    @Xeinnex1 13 лет назад

    @TheDrCN you probably cant use the same method as it uses java.util.EnumSet which is a library meant for Enums, but to do that on regular arrays, what you do instead is not using an enhanced for loop but a regular, and it would go like this, lets say you have an array named random[49], which goes from 0 to 49, but you want to use a range from 15 to 35, then your for loop would go like this: for (int x=15;x

  • @games.8781
    @games.8781 11 лет назад +46

    so you're a playah

  • @psychodelusion_331
    @psychodelusion_331 7 лет назад +2

    10 hours spent today. From 1 to 45 in one go haha. Today's target is 49 and then GUI awaits :D Who's suffering pleasantly with me?

    • @d1rtyharry378
      @d1rtyharry378 7 лет назад

      PsychoDelusion _ damn, you pretty cool! I wanted to that in one shot but since I have my exams coming 2hrs is just fine lol.XD

  • @RsTheZigec
    @RsTheZigec 11 лет назад

    I really enjoy watching these after a while. And the only thing that bothers me a bit is how he writes constants and class names. You would usualy write constants in CAPS and class names with the first letter Cappital. It's like using i in for loops. : )

  • @Tulanir1
    @Tulanir1 12 лет назад

    If you want to you can just do
    import java.util.*;
    that will import everything in the java.util package. You can do that with any other package too.

  • @parthv96
    @parthv96 9 лет назад +1

    can u do a video series on various java classes and collection framework!? that ll be really great!

  • @MrBunny53
    @MrBunny53 7 лет назад

    how did he get the parameters definition in the toolbar saying "from" and "to"? i only got like this. .range(E arg0, E arg1). Should i include any documentation to eclipse to enable that feature?

  • @Ghand0ur
    @Ghand0ur 12 лет назад

    Count down: 5 tutorials left till we make the "WINDOW"

  • @jagadkaa
    @jagadkaa 8 лет назад

    in which video was the system out print format explained? :*

  • @trinitydlamini6118
    @trinitydlamini6118 12 лет назад

    you jst make it INTERESTING!!! =)
    thanx

  • @zofg13
    @zofg13 10 лет назад

    hi, i was wondering when you created object people with tuna type, why didnt you have to type this bit... tuna people = new tuna(); thank you

  • @AELBASIRLY
    @AELBASIRLY 11 лет назад

    good job bucky, love your gfs history

  • @korkypnoy
    @korkypnoy 13 лет назад

    @smaraxxy maybe you're importing it inside the main java program. Try importing it outside that bracket

  • @DigitalMetal
    @DigitalMetal 12 лет назад +1

    Thought you were going to say Candy was sweet :)

  • @JyhadAmmarIsAwesome
    @JyhadAmmarIsAwesome 2 года назад +2

    I hope erin watches this LMAO

  • @AbhisekSarmah
    @AbhisekSarmah 8 лет назад +2

    Syntax error on token "people", delete this token
    ^^ getting this error. Can anyone help me fix it?

  • @iliangrekov
    @iliangrekov 10 лет назад

    It could be ranged with for loop too, but working with the index:
    for (int i = 3; i < Tuna.values().length - 1; i++) {
    System.out.printf("%s is %s and is %s yearsold.
    ", Tuna.values()[i], Tuna.values()[i].getDesc(),
    Tuna.values()[i].getYears());
    }

  • @swaroophumane8781
    @swaroophumane8781 7 лет назад

    Why you are not using curly braces in For Statement (Both the For Statements are without curley brackets). Let me know which is a good practice -- with braces or without braces. Your Tutorials are awesome.. keep sharing and keep earning..lol

  • @nomevic
    @nomevic 12 лет назад

    exactly, I figured it out lastly

  • @sandeshmore9967
    @sandeshmore9967 10 лет назад

    great man!

  • @TheLawG14
    @TheLawG14 13 лет назад

    Dang bucky you were straight pimpin

  • @sarahsaeed2248
    @sarahsaeed2248 12 лет назад

    l have aproblem when i use enumset in for loop it gives me error in (netbeans compiler) and in (eclips compiler )it didnot recognize the library at all

  • @shimizukebin
    @shimizukebin 12 лет назад

    hehe, I need to know it for college, so I'm watching all of them :p

  • @faisalamjad90
    @faisalamjad90 13 лет назад

    i want to know that, how to pass value to the class Enum from user?
    is there any way?
    because i have tried giving Constants the parameters...but that doesn't worked....:(

  • @ilirianabb
    @ilirianabb 13 лет назад

    bucky can you explain more about this, for example how to make the object from another class like you did last tutorial : tuna tunaObject = new tuna(); with enum class you can not creat an object to another class. I can understand all but I need more to know about enumset and why are useful?

  • @DenisTrailin
    @DenisTrailin 12 лет назад

    I love how tutorial 1 was installing the IDE. Did people think that would just be done after that?

  • @Unon-jp8hs
    @Unon-jp8hs 13 лет назад

    @Unon1100 Whoops... accidentally put a semicolon after all the stuff in the second for loop... :P

  • @DoitiEtok
    @DoitiEtok 13 лет назад

    @mondoman712 You aren't the only one...

  • @hauteswan2541
    @hauteswan2541 7 лет назад

    Awesome!

  • @APaperSpork
    @APaperSpork 13 лет назад

    @BUCKYAUSTIN Well, its all about memory.
    That would use more memory than specifying.

  • @lopejustin
    @lopejustin 8 лет назад

    One question is why are we using for example "Tuna.Kelsey " since we have created object people of Tuna class. Shouldn't it be People.KELSEY???

  • @meme-jl9fs
    @meme-jl9fs 6 лет назад

    this guy, this guy is legnd

  • @avenger_aawin4971
    @avenger_aawin4971 7 лет назад +1

    necole appropriately named as tunaobject 2

  • @InvaderWakkoReborn
    @InvaderWakkoReborn 13 лет назад

    @johnnyelduayen I learned that in the later tutorials. It's confusing when he uses stuff he hasn't taught us yet.

  • @ykishore4340
    @ykishore4340 6 лет назад

    Where from people object came? Sorry, couldn't understand.

  • @smaraxxy
    @smaraxxy 13 лет назад

    I keep getting the same error(Syntax error on token "package", import expected) when I import EnumSet, does someone know why do I get this error?