@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, this is so funny, are you using a book as a guide or something? because my course at school is following EXACT the same steps as you are, so I'm wondering if you both are using a book as guide line, or if they are making there slides based on your videos ;p
@360boxes Every primitive type has a corresponding "wrapper" class... for int, it's wrapper class is Integer. For char, it's Character. Same shit really...
He prob should of used int, and char to create those arrays but his syntax is completely acceptible b/c arrays are objects and 'Integer' and 'Character' represent objects.
Once if you use the Generic technology you should use Character[] type and Integer[] type instead of char[] type and int[] type and so on because the generic technology must be used on object not the basic data type such as int, char, long, float and so on, the parameter in generic method is an object rather than a basic data,otherwise the program cannot be compiled.
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 !!
ghandi851 17 hours ago
Lol, watched this and then I was like WTF, and then I noticed I was watching the Intermediate tutorial.
Viddharto 1 month ago
May I know about it?
I'm infant with Java programming...I'm curious with these example. Both of example give us same reasult..What is the different?
String[] thePeople = {"Marc", "Dav", Kevin};
//and
String thePeople[] = {"Marc, "Dave", "Kevin"};
//I demonstrated in that way;
for(String x:thePeople) System.out.println(x);
bishnuinet 1 month ago
@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)
JavaMonsterification 1 month ago
@bishnuinet
its the same but some ppl maybe prefer arrays in C++ style where its
string array[];
i dont know at all ;/
devilazpl 4 weeks ago
lol, this is so funny, are you using a book as a guide or something? because my course at school is following EXACT the same steps as you are, so I'm wondering if you both are using a book as guide line, or if they are making there slides based on your videos ;p
immortaljin 2 months ago
@immortaljin They are copying bucky :D
Azutrumable 2 months ago
"...but I'll be telling you that in the next tutorial."
"Honey time to go sleep!"
"FFFUUFUUUU- *BEEEEEEEP*"
xero907 4 months ago
int the app.net add to the right is that a creeper on the rihgt?
DazKins 5 months ago
GENERIC METHODS
awesomelemonade 5 months ago
I'm understanding this less and less, this sucks, maybe i need a break, but idk
chrisxd146 6 months ago
Sweet!!!
DemocraWatch 6 months ago
Does anyone know how multi-dimensional arrays work in this case?
WesThorburn 6 months ago
bucy ftw
zerohourkevin 6 months ago
I dont think many people understood the last tutorial; he's lost about 130,000 viewers!
preymouth 7 months ago
Is this like type conversions in c++?
PurexOvvnage 11 months ago
This has been flagged as spam show
I published the code I typed while following these video to my blog. gprograming.blogspot.com
Just visit it as you need ;)
maninw 1 year ago
did you put this on your site?
I didn't see it..
eamedrolf 1 year ago
Hey, why does he use Character[] cray and Integer[] iray instead of char[] cray and int[] iray?
360boxes 1 year ago 22
@360boxes Because you can't use primitive types like int and char in generic parameters.
CommieDogg 1 year ago
@360boxes Every primitive type has a corresponding "wrapper" class... for int, it's wrapper class is Integer. For char, it's Character. Same shit really...
GoldAK47 11 months ago
@360boxes
He prob should of used int, and char to create those arrays but his syntax is completely acceptible b/c arrays are objects and 'Integer' and 'Character' represent objects.
matthazan 10 months ago
@360boxes because generics only work with objects and not primitive types
Almjz 8 months ago
@360boxes
Because char and int are primitives and they don't work with ArrayList
kratzzro 6 months ago
@360boxes
generic method only process object and never primitive types, that's why the array are created in the correspondant type wrappers
ericpiwele 5 months ago
@360boxes
Collections/Generic methods have to take objects not primitive data... the int's get autoboxed to Integers when they are added
PringDaddyPring 5 months ago in playlist Intermediate Java Tutorials
Comment removed
SnoweyMan111 5 months ago
@360boxes is the same thing for example int a[] is the same as int[] a it doesn't affect the code it's just another way of writing it.
mitzu4lakers 5 months ago
@360boxes because char and int are just shorthand ways of calling the classes Character and Integer
TehGameMaker 4 months ago
@360boxes I believe they're the reference data types. I haven't a clue on the purpose though :P
xGxUxIxTxAxR 4 months ago
This has been flagged as spam show
@360boxes
Once if you use the Generic technology you should use Character[] type and Integer[] type instead of char[] type and int[] type and so on because the generic technology must be used on object not the basic data type such as int, char, long, float and so on, the parameter in generic method is an object rather than a basic data,otherwise the program cannot be compiled.
Freedom1987ify 4 months ago
@360boxes He needs it to be an array of objects, not primitives.
chibee1620 3 months ago 3
@360boxes He is using the full version of the data type to avoid confusion instead of the truncated int and char.
ciaranst 3 months ago
@360boxes Read up on Generics and their associated wrapper classes that will clear up your question
JavaMonsterification 1 month ago
@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
888888881me 1 month ago in playlist Intermediate Java Tutorials
@360boxes
Int, Char are basic types but Integer and Character are classes that represent Int or Char, they have some more methods
devilazpl 4 weeks ago
This has been flagged as spam show
@360boxes
because Integer and Character it's Objects !!!!!!!!!
he does arrays of Object, not variables .
With Object U can use many methods.......
dima4u5 2 weeks ago
@360boxes It's both possible, Character[] is the super class. I'd use char[] aswell, but apparently it doesn't matter.
lolmewn 23 hours ago in playlist Java (Intermediate) Tutorials
This has been flagged as spam show
1:42 - I am going to be created XD! Bucky, you make the greatest tuts.
themacguy1001 1 year ago 3
Comment removed
themacguy1001 1 year ago
Comment removed
themacguy1001 1 year ago
Comment removed
themacguy1001 1 year ago
Thanks Man.
Dalwanaage 1 year ago
Thank you, this is helping me a lot
hyp3o 2 years ago 13
what java are you using? drJava or what?
23SuS23 2 years ago
do you mean IDE, cuz he's using eclipse, watch his second or third java programing video
Flamehead78 2 years ago