Results 1 to 2 of 2
  1. #1
    blawknox04 is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Default Arraylist of Type T

    How do you set up an arraylist of type T and fill it up (T being an extension of java.lang.number) and then pass it.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,374
    Blog Entries
    1
    Rep Power
    18

    Default

    You want to add different types into an ArratList? Did you search on the forum, as well as on the web?

Similar Threads

  1. using instanceof to get Object type and parent type?
    By xcallmejudasx in forum New To Java
    Replies: 2
    Last Post: 11-06-2008, 06:24 PM
  2. [SOLVED] Cast string type to int type
    By GilaMonster in forum New To Java
    Replies: 9
    Last Post: 09-17-2008, 10:43 AM
  3. Replies: 2
    Last Post: 04-21-2008, 11:43 AM
  4. ArrayList<type> - Generics
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-14-2007, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •