Consider this Generics Code:
interface Collection<E> {
public void add (E x);
public Iterator<E> iterator();
}
And this one:
public class MyClass<V> {
V v;
setSomeValue(V val) {
v=val;
}
V getSomeValue() {
return v;
}
}
My Question:
Do those letters in angular brackets:
<V> and <E>
have specific meaning.
Can i use any English Alphabet. i.e can they be
<A> or <Q>?
return valueandvalue = val