12 lines
326 B
Java
12 lines
326 B
Java
// generics/UseList.java
|
|
// (c)2016 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://OnJava8.com for more book information.
|
|
// {CompileTimeError} (Will not compile)
|
|
import java.util.*;
|
|
|
|
public class UseList<W, T> {
|
|
void f(List<T> v) {}
|
|
void f(List<W> v) {}
|
|
}
|