Given the following code:
package com.gmail.oksandum.test; import java.util.ArrayList; import java.util.List; public class Test { public static void main(
One problem is that you are trying to instantiate the Arraylist by specifying the generic type in the list, but not using the same type in the Arraylist.
Use : List ls = new ArrayList();
Also please provide a default constructor for LocalFoo