problem in overwrite using Generics

Discussion in 'Java' started by SantaJava@gmail.com, Jan 30, 2007.

  1. Guest

    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
     
    , Jan 30, 2007
    #1
    1. Advertisements

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. =?Utf-8?B?Um9iZXJ0?=

    Deployment in 2.0 - How To Not Overwrite web.config

    =?Utf-8?B?Um9iZXJ0?=, Nov 2, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    4,734
    Juan T. Llibre
    Nov 3, 2005
  2. VisionSet
    Replies:
    1
    Views:
    4,398
    Adam Lipscombe
    Sep 2, 2003
  3. shruti tiwari via JavaKB.com

    overwrite existing value of a textbox with null

    shruti tiwari via JavaKB.com, Apr 2, 2005, in forum: Java
    Replies:
    1
    Views:
    747
    David.Federman
    Apr 3, 2005
  4. Juergen Berchtel
    Replies:
    1
    Views:
    6,522
    John C. Bollinger
    May 20, 2005
  5. Philipp Leitner

    Overwrite Default Constructor ?

    Philipp Leitner, Apr 17, 2006, in forum: Java
    Replies:
    26
    Views:
    4,747
    Jeroen V.
    Apr 19, 2006
  6. Replies:
    1
    Views:
    375
    Daniel Pitts
    Jan 30, 2007
  7. Soul
    Replies:
    0
    Views:
    723
  8. Replies:
    2
    Views:
    137
    Henry
    Feb 5, 2008
Loading...