Questions tagged as 'metodos'

0
answers

RecyclerView with Dates

I want to filter in a recyclerView With Dates. To do this I make a query on the db SQLite, the dump in a cursor. I have created a method to which two variables type date di=fechaInicio and df=FechaFin are passed. My problem is that...
asked by 25.12.2018 / 22:27
0
answers

Convert SMIL file to JSON

In this program we manage a .smil file and we want to convert it to Json during its execution. The program works as it should in all methods but it shows the same output as when I was printing the .smil file on the terminal, so I think that my t...
asked by 16.10.2018 / 13:51
1
answer

How to use a "compareTo" method to find the oldest movie?

I was doing an exercise on the sales of a video club, the video club has 3 products: movies, series and videogames. Each product has its class and in the main method I declare 4 objects of movie type, 4 of series and so on. Each class has overwr...
asked by 09.10.2018 / 14:42
1
answer

Arrangements of objects as compare [duplicate]

I would like to know how I can make my method print, print the object. and I run it in the bubble method, I also add my test code. Because what I print is    ordenamientos.Persona@15db9742 - ordenamientos.Persona@6d06d69c - ordenamientos.Pe...
asked by 15.09.2018 / 06:26
0
answers

call a private method from another class on android

I have the following class questions: public class preguntas extends AppCompatActivity{ public static MediaPlayer preguntas15; Button respuestabtn; public static int MILISEGUNDOS_ESPERA = 3000; public static Button a, b, c, d, cincuentacincu...
asked by 04.09.2018 / 21:16
0
answers

Erasure of method getTO (ListPdvdetMessage) is the same as another method in type PdvdetTO

I have problems in Eclipse Oxygen, since I get the following error message in the two methods: "Erasure of method getTO (List) is the same as another method in type PdvdetTO" Which is strange for me, because as you can see, the two methods ab...
asked by 24.08.2018 / 16:54
1
answer

Take a value from a method

Good Companions, I have a problem. I have the following method: public void repartirPC1() { try { CartasPc1[0] = (int) (Math.random() * 13); CantidadCartas[CartasPc1[0]]--; } catch (ArrayIndexOutOfBounds...
asked by 26.07.2018 / 04:10
1
answer

Error compiling a list in java

It's my first time at Stackoverflow and I hope you can help me. I'm in Java courses and we're in the list creation part, I have this class (List.java) which contains the following: public class Lista{ Node inicio; int tamanio=0; /** se...
asked by 16.07.2018 / 02:01
1
answer

FAILURE TO CALL METHOD

Simplify it to understand it and make it a little bit clearer. The issue is that with the alternative that I received, it still fails to call the method to add a bottle to a shelf .. Probe and I have the correct instance of the bottle and the sh...
asked by 29.05.2018 / 04:37
2
answers

How can I add a name (String) within a predefined array in java?

Load an array with 3 predefined fruit names String fruits [] = {"apple", "orange", "melon"}; 2.Add a name to the list by keyboard.     
asked by 01.04.2018 / 04:26