Java - how to solve this warning in Eclipse? Generic Problem

Discussion in 'Java' started by princess.d, Jul 8, 2008.

  1. princess.d

    princess.d

    Joined:
    Jul 8, 2008
    Messages:
    2
    I have the code as below:
    public void update(Vector<String> names, String[] params){
    }

    But there is the error message that:
    Vector: this type vector is not generic;it cannot be parameterized with the arguments String.
    String: Syntax error,parameterized type are only available if the source is level 5.0

    Can anyone tell me what it means and give an example of how I can get rid of the warnings?
     
    princess.d, Jul 8, 2008
    #1
    1. Advertising

  2. princess.d

    princess.d

    Joined:
    Jul 8, 2008
    Messages:
    2
    help me~

    is there any person could help me or give me some hints?:captain:
     
    princess.d, Jul 8, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chao
    Replies:
    6
    Views:
    1,288
    Mike Treseler
    Jul 5, 2004
  2. Cram TeXeD
    Replies:
    0
    Views:
    356
    Cram TeXeD
    Jun 12, 2004
  3. Murat Tasan
    Replies:
    1
    Views:
    8,073
    Chaitanya
    Feb 3, 2009
  4. Brandon McCombs

    how to solve this warning in Eclipse?

    Brandon McCombs, Mar 12, 2006, in forum: Java
    Replies:
    16
    Views:
    44,411
    Chris Smith
    Mar 26, 2006
  5. Ross

    weird 'C' warning - can you solve this?

    Ross, Feb 24, 2004, in forum: C Programming
    Replies:
    11
    Views:
    712
Loading...

Share This Page