Currently facing issue as "The type ArrayList is not generic; it cannot be parameterized with arguments " with the below Syntax
ArrayList<String> ls= new ArrayList<String>();
If i try to use non generic type syntax , then it's giving me error while calling add method that add is not defined with the below code
ArrayList ls= new ArrayList();
ls.add("ABC");