Questions tagged as 'arraylist'

2
answers

How to get a value of an arrayList in Android?

I have the following ArrayList which filled with information from a database ArrayList<HashMap<String, String>> employeeList; employeeList = new ArrayList<>(); private static final String TAG_NAME = "name"; public static fina...
asked by 03.03.2017 / 03:22
2
answers

List interface with different instantiations

What is the difference, advantages, disadvantages between?: List a=new ArrayList();\suponiendo que introducire numeros enteros ArrayList a=new ArrayList(); \suponiendo que introducire numeros enteros ArrayList<Integer...
asked by 28.08.2017 / 07:38
5
answers

How to find a string within a list

In this code, what I need is to compare the movie string to the attribute of all the objects in the Movie class, and if it finds it returning a Boolean, but somehow it does not, can you help me and see what is wrong? . Thanks public clas...
asked by 26.05.2017 / 20:37
1
answer

Find equal Strings of an ArrayList?

I have a three-color Array, Red, Blue and Green, with a while I add 10 random colors to an ArrayList. I need to find all the colors "Red", "Blue" and "Green" of the ArrayList, and then add all the "Red" colors found to an array where only "Red"...
asked by 02.11.2018 / 18:31
2
answers

Error: code too large

I have the following arraylist : Polylines , the arraylist has 190 elements, which when compiled I get the following error:    error: code too large According to what I'm investigating, it's a java error, but I do not know h...
asked by 24.06.2017 / 03:33
3
answers

Compare different ArrayList's in Java

Good evening I would like you to help me in the following: I have 2 ArrayList's: ArrayList<Persona> listaPersona; that its content transforming it into Json is the following: [{"nombre":"Luis", "edad":"22"},{"nombre":"Juan","edad...
asked by 03.05.2018 / 03:39
1
answer

Multiple filtering in an ArrayList

I have a method that receives an Object of type List of a class of its own that is called Pallet. The class Pallet has a creation date, an article, an id, a warehouse ... etc. The method    filterPalletWithDataretorna (List lis...
asked by 03.10.2017 / 15:29
3
answers

Help with ArrayList in Java

Schedule a list using the ArrayList class The list must contain at least 8 attributes. So far I have the Class already created with its attributes, empty constructor, constructors, getter and setter and finally toString. My class is called Ca...
asked by 13.11.2018 / 19:37
1
answer

How to pass an ArrayList from one class to a method within another Class?

I need to use a ArrayList object object that I have in a class, in one method that I have in another. The files within the project are separate and I have inside one, a function that works on the attributes of the objects within the Ar...
asked by 16.05.2018 / 17:02
1
answer

Browse ArrayList with different java objects

I have a class Avisos of which two types of ads inherit. I save them all in an ArrayList and I could not access the getters of one of the children ads. I need to get ads of type AvisosLimpiar on a certain date and I am using the...
asked by 20.07.2017 / 01:56