11 lines
243 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: generics/coffee/Coffee.java
package generics.coffee;
public class Coffee {
private static long counter = 0;
private final long id = counter++;
public String toString() {
return getClass().getSimpleName() + " " + id;
}
} ///:~