Intermediate Java Tutorial – 17 – Generic Methods

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

31 responses to “Intermediate Java Tutorial – 17 – Generic Methods”

  1. lionpersia Avatar

    I think you're an Angel, brother. I can't thank you enough.

  2. Nik King Avatar

    it could be easier if u just used Object in the printMe method, like so:
    https://pastebin.com/c8zLCssF

  3. kamil khawaja Avatar

    Bucky i usualy dont leave a coment…

    but these 5 min videos have been a hell of a help.
    thankyou for everything..

  4. Bob The Zealot Avatar

    go ahead and piss…

  5. ORÇUN Avatar

    not to be. generic methods are not this.

  6. Zachary Patterson Avatar

    just letting you guys know, I do not know why bucky is not doing this but instead of putting Integer or Character, you can put int and char. This is much shorter then typing the actual word and works the exact same way. I am still confused why bucky chose to do it this way but hopefully this helped you. The reason I put this comment is because people are saying they are getting errors because they are not typing Integer or Character correctly.

  7. jellah22 Avatar

    you can actually just type 'syso' and then press ctrl+space to auctamticly generate a printline ^^ quicktip 😀

  8. 1234LMAO12345 Avatar

    please have sex with me bucky, your coding skills turn me on

  9. Lowinator Avatar

    I just looked up your other playlist. Algebra, biology, chemistry and even an Assasin's Creed walkthrough?! Thats by far not all of them, the programming ones are the bomb. Here's a HUGE thanks for all of them, your playlists are getting me through college lol

  10. Ali Mizan Avatar

    All your tutorials are awesome man, thanks for making them.

  11. Jeremy Chen Avatar

    import java.util.*;

    public class julian {
        public static void main(String[] args) {

            Integer[] iray = {1,2,3,4};
            Character[] cray = {'b', 'u', 'c', 'k'};

            printMe(iray);
            printMe(cray);
        }

        private static void printMe(Integer[] i) {
            for (Integer x : i)
                System.out.printf("%s ", x);
            System.out.println();
        }

        private static void printMe(Character[] i) {
            for (Character x : i)
                System.out.printf("%s ", x);
            System.out.println();
        }
    }

  12. LawZist Avatar

    Why can't i just write 

    Syso…println (iray);
    Syso…println (cray);

    ?

  13. Gabriel Canto Avatar

    Wait, after you created the second printMe using the same signature, shouldn't it overwrite the first one?

  14. Matt LeClerc Avatar

    How do you make everything seem so freaking simple it's incredible.

  15. Gilblo Avatar

    Why are we spelling out Integer and Character entirely here? Why not just the standard and shorter Int and Char type declarations?

  16. solid snaake Avatar

    thanks man, that was really helpful!!!! 🙂

  17. The Nick Avatar

    +notionSlave – reply
    In one of the later beginning java tutorials (74?), a commentator stated he knew the text book Bucky was using, or utilizing for his tutorials. If he is using a textbook, it is easier for me to learn this way than to crack open a book. I enjoy these videos and his delivery.

  18. InsertNasusMeme Avatar

    ten people will never learn java but are watching greg's videos anyway

  19. groxter1 Avatar

    Just…you 're the best!!!!

  20. notionSlave Avatar

    4 min only on generics?
    i have a feeling this guy is just copying and pasting and not knowing a fucking clue what hes doing.
    fuckign fake LOL

  21. xtre Avatar

    This is just a coincidence.. The example reason used to help teach this is exactly matching the reason why I'm watching.. how useful ha!

  22. Games. Avatar

    Oooh you answer comments with @ i thought with +

  23. Games. Avatar

    And he comes with this now -_-

  24. BBeanland Avatar

    he's a better teacher than school teachers

  25. Winiarus1435 Avatar

    finally something usefull

Leave a Reply

Your email address will not be published. Required fields are marked *