[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Intermediate Java Tutorial – 17 – Generic Methods
by
Tags:
Comments
31 responses to “Intermediate Java Tutorial – 17 – Generic Methods”
-
I think you're an Angel, brother. I can't thank you enough.
-
it could be easier if u just used Object in the printMe method, like so:
https://pastebin.com/c8zLCssF -
Bucky i usualy dont leave a coment…
but these 5 min videos have been a hell of a help.
thankyou for everything.. -
go ahead and piss…
-
not to be. generic methods are not this.
-
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.
-
you can actually just type 'syso' and then press ctrl+space to auctamticly generate a printline ^^ quicktip 😀
-
that shit cray
-
please have sex with me bucky, your coding skills turn me on
-
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
-
All your tutorials are awesome man, thanks for making them.
-
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();
}
} -
Why can't i just write
Syso…println (iray);
Syso…println (cray);?
-
Wait, after you created the second printMe using the same signature, shouldn't it overwrite the first one?
-
Thank you!
-
How do you make everything seem so freaking simple it's incredible.
-
Why are we spelling out Integer and Character entirely here? Why not just the standard and shorter Int and Char type declarations?
-
thanks man, that was really helpful!!!! 🙂
-
+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. -
ten people will never learn java but are watching greg's videos anyway
-
Just…you 're the best!!!!
-
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 -
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!
-
Oooh you answer comments with @ i thought with +
-
And he comes with this now -_-
-
that shit cray
-
bucy XD
-
That shit cray.
-
nice one man!
-
he's a better teacher than school teachers
-
finally something usefull
Leave a Reply