Class Structure
class Packet {}
class PacketList extends ArrayList<Packet> {}
Now I am trying to cast object of ArrayList to Object of PacketList
List<Packet> p = new ArrayList<Packet> ();
PacketList pList = p;
But it will not work. Please help me out
Error Message:
incompatible types: List cannot be converted to PacketList