Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Intermediate Java Tutorial - 17 - Generic Methods

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
31,037
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 28, 2010

Methods that are generic.

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • Hey, why does he use Character[] cray and Integer[] iray instead of char[] cray and int[] iray?

  • Thank you, this is helping me a lot

see all

All Comments (50)

Sign In or Sign Up now to post a comment!
  • @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.

  • @bishnuinet

    its the same but some ppl maybe prefer arrays in C++ style where its

    string array[];

    i dont know at all ;/

  • @360boxes

    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.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more