13 lines
289 B
Java
13 lines
289 B
Java
// generics/coffee/Coffee.java
|
|
// ©2016 MindView LLC: see Copyright.txt
|
|
package generics.coffee;
|
|
|
|
public class Coffee {
|
|
private static long counter = 0;
|
|
private final long id = counter++;
|
|
@Override
|
|
public String toString() {
|
|
return getClass().getSimpleName() + " " + id;
|
|
}
|
|
}
|