Código Java:
Ver original
ArrayList<InfoCastles> arraycastle1=new ArrayList<>(); ArrayList<InfoCastles> arraycastle2=new ArrayList<>();
y los quiero unificar en..
Código Java:
Ver original
ArrayList<InfoCastles> listaInfoCastillo =new ArrayList<>();
Como yo tengo es..
Código Java:
Ver original
listaInfoCastillo = new ArrayList<>(arraycastle1); listaInfoCastillo.addAll(arraycastle2);
Pero lo que pasa es que cuando le paso para ver el contenido me queda:
Código Java:
Ver original
InfoCastles{id=7, taxPercent=7, siegeDate=1393786800000, clanName=null, allyName=null} InfoCastles{id=6, taxPercent=6, siegeDate=1393786800000, clanName=null, allyName=null} InfoCastles{id=5, taxPercent=15, siegeDate=1393714800000, clanName=null, allyName=null} InfoCastles{id=4, taxPercent=14, siegeDate=1393786800000, clanName=null, allyName=null} InfoCastles{id=3, taxPercent=13, siegeDate=1393786800000, clanName=null, allyName=null} InfoCastles{id=2, taxPercent=12, siegeDate=1393714800000, clanName=null, allyName=null} InfoCastles{id=1, taxPercent=11, siegeDate=1393714800000, clanName=null, allyName=null} InfoCastles{id=0, taxPercent=0, siegeDate=null, clanName=Bagleyx, allyName=Qwerty} InfoCastles{id=0, taxPercent=0, siegeDate=null, clanName=Trankinas, allyName=null} InfoCastles{id=0, taxPercent=0, siegeDate=null, clanName=MACHETE, allyName=Qwerty} InfoCastles{id=0, taxPercent=0, siegeDate=null, clanName=NiopeX, allyName=Cubros} InfoCastles{id=0, taxPercent=0, siegeDate=null, clanName=GODES, allyName=Cubros} InfoCastles{id=0, taxPercent=0, siegeDate=null, clanName=chuchichis, allyName=Qwerty} InfoCastles{id=0, taxPercent=0, siegeDate=null, clanName=QWERTYSTAFF, allyName=Cubros}
No se si entienden lo que quiero, que no aparesca el null que queden unidos pero ya no se de que forma hacerlo
Espero sus respuestas
Saludos!!