Might having an inner class with a generic type name that holds the same name of the generic type of the outer class lead to errors with the code later on? Do we have to have different generic names for the nested classes? The following is an example:
public class LinkedList<E> {
// add state and methods
private class Node<E> {
//add state and methods
}
}
Compared to
private class Node<E> {
//add state and methods
}
public class LinkedList<E> {
// add state and methods
}