type parameter in ArrayList
Hi all,
I need to know the reason why the name of type parameter is not allowed to be the same as class name . For example,
import java.util.Random;
import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class bouncingBalls {
static ArrayList<bouncingBalls> list = new ArrayList<bouncingBalls>();
bouncingBalls a=new bouncingBalls();
list.add(a);
public static void main(String[] args) {
}
}
Please help. Thanks.

