Intermediate Java Tutorial - 17 - Generic Methods
Top Comments
All Comments (50)
-
@360boxes Character[] ect. is used with collections more often
-
i get errors if i don't put static as it is!
static int [] iray = {1,4,5,6}; static char [] hray = {'a','v','c'};
why is that?
tanx
i like your video !!
-
@360boxes It's both possible, Character[] is the super class. I'd use char[] aswell, but apparently it doesn't matter.
-
its the same but some ppl maybe prefer arrays in C++ style where its
string array[];
i dont know at all ;/
-
Int, Char are basic types but Integer and Character are classes that represent Int or Char, they have some more methods
-
@360boxes here. I am a little late.... but here... lol. I'm not even sure if you remember posting this xD but here is why you say Integer and not int
/watch?v=GG7AjNXS0OA
-
@360boxes Read up on Generics and their associated wrapper classes that will clear up your question
-
@bishnuinet I believe u can use the prior i.e String [] a,b,c to declare several arrays of type string as opposed to String[] a,b,c which makes 1 string array(a) and two variables (b & c)
-
Lol, watched this and then I was like WTF, and then I noticed I was watching the Intermediate tutorial.
Hey, why does he use Character[] cray and Integer[] iray instead of char[] cray and int[] iray?
360boxes 1 year ago 23
Thank you, this is helping me a lot
hyp3o 2 years ago 14