Search:

Type: Posts; User: copeg

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    1,391

    Re: Arrays and Generics

    Read my post above again - if you defined T to extends Number, there will be no need to cast (which defeats the purpose of generics anyways)
    see Number (Java Platform SE 6)


    public class...
  2. Replies
    4
    Views
    1,391

    Re: Arrays and Generics

    First, you can't iterate over a generic list expecting it to be a double (this is the compile time checking at work that makes generics so powerful). You need to iterate over the list using the...
Results 1 to 2 of 2