泛型接口
public interface GenericInterface<T> {
void show(T value);}
}

public class StringShowImpl implements GenericInterface<String> {
@Override
public void show(String value) {
System.out.println(value);
}}

posted on 2023-12-23 11:51  杨申龙  阅读(7)  评论(0)    收藏  举报