Why Generics not working in my machine. Why below code not working in Eclipse without Type casting to the String. I am using Java 1.6
String
package com.wi
This statement can't give any error if you are using java 1.5 or greater. But if you are using some older version than
List list = new ArrayList();
will give error. First you will have to solve this issue than type cast will come.