Saturday, April 26, 2008

"variable might have not been intialized

List retList

If

retList.Add(objectp[i]) //*** this line will prompt variable might have not been intialized



Root cause: Java.util.list is abstract, can not be instantialized

Solution: List retList=new ArrayList(); //=new List() is abstract and not valid

Labels:

0 Comments:

Post a Comment

<< Home