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

Joined
Jul 8, 2008
Messages
2
Reaction score
0
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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top