I hereby claim:
- I am iande on github.
- I am iande (https://keybase.io/iande) on keybase.
- I have a public key ASAAZLXxLfI56JPzKX02tjCdOJwekL22WGsEiHzJyTU1LQo
To claim this, I am signing this object:
| public class Triangle { | |
| public int width; | |
| public int height; | |
| } | |
| public class Rectangle { | |
| public int width; | |
| public int height; | |
| } |
| import java.util.ArrayList; | |
| public class Main { | |
| public static void main(String[] args) { | |
| ArrayList<Integer> myList = new ArrayList<Integer>(); | |
| myList.add(new Integer(10)); | |
| myList.add(new Integer(11)); | |
| myList.add(new Integer(12)); |
| public class Box<T> { | |
| private T whatsInTheBox; | |
| // Creates a new box that holds nothing of value | |
| public Box() { this(null); } | |
| // Creates a new box that holds the given T instance. | |
| public Box(T store) { | |
| this.set(store); | |
| } |
| // The bounded type parameter dictates the kinds of Box instances we can create. | |
| public class NumberBox<T extends Number> { | |
| private T _number; | |
| public NumberBox() { this(null); } | |
| public NumberBox(T toStore) { | |
| set(toStore); | |
| } | |
| public T get() { return _number; } |
I hereby claim:
To claim this, I am signing this object: