problem in overwrite using Generics

S

SantaJava

package jp.co.nec.rfidmgr.epcis;

import java.util.List;
import java.util.Map;

public class T {
public void temp(List<String> str) {

}

public void temp(List<Integer> str) {

}

public void temp(List<Map<Integer,String>> str) {

}
}

error:
Duplicate method temp(List<String>) in type T T.java
Duplicate method temp(List<Integer>) in type T T.java
Duplicate method temp(List<Map<Integer,String>>) in type T T.java

how can i overwrite a method using generics
 

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

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top