Java - how to solve this warning in Eclipse?

Discussion in 'Software' 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~

    It seems to be a problem in generic type.
    How could I modify the code?
    :oops:
     
    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. Fernando Kohan

    JAVA VIRTUAL MUCHINE OR SUN JAVA

    Fernando Kohan, Nov 13, 2004, in forum: Firefox
    Replies:
    1
    Views:
    1,011
    Clark
    Nov 14, 2004
  2. Ed Pulliam
    Replies:
    1
    Views:
    838
    Oxford Systems
    Jul 12, 2003
  3. dakine

    MS Java or Sun Java???

    dakine, Jul 20, 2004, in forum: Computer Support
    Replies:
    9
    Views:
    1,494
  4. Charles

    Warning: WARNING

    Charles, Aug 15, 2005, in forum: Computer Support
    Replies:
    7
    Views:
    4,764
    =?ISO-8859-15?Q?Brian_H=B9=A9?=
    Aug 16, 2005
  5. amanjsingh

    Eclipse - Axis2 - Java Webservices Error

    amanjsingh, Oct 9, 2007, in forum: Software
    Replies:
    1
    Views:
    2,483
    amanjsingh
    Oct 9, 2007
Loading...

Share This Page