I’m converting an app someone else wrote to Android.
One of the classes is declared like so:
public class PowerList : List<PowerEvent>
How would I do this in Java for Android? If I do this:
public class PowerList extends List<PowerEvent>
I get errors –
"The type List<PowerEvent> cannot be the superclass of PowerList; a superclass must be a class"
List is an interface rather than an extendable class. You could try extending ArrayList instead.