OnJava8-Examples/generics/Holder1.java
2016-12-30 17:23:13 -08:00

13 lines
338 B
Java

// generics/Holder1.java
// (c)2017 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.
class Automobile {}
public class Holder1 {
private Automobile a;
public Holder1(Automobile a) { this.a = a; }
Automobile get() { return a; }
}