On May 10, 1:20 pm, varshini <[email protected]> wrote:

> public class ArrayList {
This is a known class, you cannot use its name to write your own.
>
>     public static void main(String[] args) {
>     ArrayList a =new ArrayList();
Here it's better to use generic, as already mentioned:
ArrayList<Object> = new ArrayList<Object>();
...

PS: avoid to open a new thread for the same discussion, please.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to