Questions tagged as 'objeto'

1
answer

Store and compare attribute value of an object in javascript

I have an object with some attributes and would like to store the value of one (the attribute is "state" and has value "closed") in a variable to compare its value by an "if" statement. What I'm looking for is doing something depending on the va...
asked by 10.05.2018 / 12:17
1
answer

Object arrangement by several Classes?

I am a beginner in terms of OOP, and right now I am doing a code for a veterinarian where I have to make an arrangement of objects and put animal data. This is the parent class (which, as you can see is Abstract) package veterinaria;...
asked by 22.04.2018 / 18:07
2
answers

Empty properties of a polyline type object?

Empty properties of a polilyne type object I need to empty a polilyne type object so that it can be reused as many times as needed, I want the properties to remain empty, for example the object when you have values has something like that l...
asked by 23.09.2017 / 02:21
4
answers

how do I generate objects with a java loop?

public static void main(String[] args) { Scanner teclado = new Scanner(System.in); System.out.println("Introduzca el numero deseado de objetos: "); int n = teclado.nextInt(); String vector[] = new String[n]; for (int i = 0;...
asked by 28.08.2017 / 07:46
1
answer

How do I fill an arraylist with several objects using the interface?

EDIT I want to print the 11 players that the user types in the interface. Player is an object with the data string dorsal, last name and position. Gamer is where the whole interface you see below is. Driver is listener where I add functi...
asked by 29.11.2018 / 22:11
2
answers

Pass objects between Android activities

I have an activity where a series of fields are filled. In it I have a button where when I press it opens a recyclerView, which presents the data of a table. When selecting one of the items in the RecyclerView, I want the object to be passed to...
asked by 20.11.2018 / 20:15
2
answers

How to delete Object Property without knowing its Key. JavaScript

This time I have a question, I have this example object: "pasada" : { "09-10" : 34.11, "09-11" : 35.73, "09-12" : 34.03, "09-13" : 35.85, "09-14" : 38.75, "09-15" : 34.07, "09-16" : 32.46, "09-17" : 34.57 } W...
asked by 17.09.2018 / 17:43
1
answer

Pass an object type ArrayList to another Activity or Activity in Android [duplicated]

Good evening, I am trying to pass an arraylist of type object from one activity to another but it has not worked. I have tried this way without success. Activity 1: ArrayList<DatosReferencia> Lista = new ArrayList<>(); //Lo e...
asked by 16.01.2018 / 06:51
1
answer

Why can not I create two sub-levels within an object?

var objeto = { sub1_A: {}, sub1_B: {}, sub1_C: {} } I have no problems if I do the following: objeto.sub1_A.sub2 = "Prueba"; But yes if I descend a level more directly: objeto.sub1_A.sub2.sub3 = "Prueba"; If I try to set the...
asked by 28.08.2018 / 15:39
1
answer

How can I pass a javascript object to string?

I have an object in Javascript with different attributes, some of them are arrays . I would like to know if there is any function of any kind style. toString() to return a text string with all the data. Example: let p...
asked by 27.01.2018 / 10:18