Questions tagged as 'objeto'

1
answer

How is a two-dimensional array directly instantiated by giving it parameters in the new?

In the case of being an array of a single serious dimension; new Vectores().ComprobarMenor(new int[] { 2, 4, 66, 6, 3, 7, 2, 7, 2, 13, 6 ,0}); But if they are two dimensions?     
asked by 05.11.2017 / 16:39
2
answers

How can I fill an ArrayList with an object of an already created class

I tell you that I have two classes, a class of Task type and another of type Person, within the attributes of type person, has an ArrayList of Task type, when I create an object of Task type, and when filling this object with its attributes....
asked by 27.11.2018 / 21:29
1
answer

Filter by content Multidimensional array, Functional Programming. JavaScript

This time I need to obtain the following purpose, in principle I get an object, which led to a multidimensional array , which I need to take only some depending on its content, the text strings are dates with their value next, I would need...
asked by 02.10.2018 / 23:08
1
answer

When copying an object are they subject to the same changes?

I am using a tool that serves to create user surveys. The tool generates a page (the survey) with a JS object in which there is information about the user's interaction with the questions and some utilities (methods) and that she herself uses to...
asked by 23.08.2018 / 13:58
2
answers

Array containing objects created in JavaScript, how to display the contents of the array in an HTML div?

The fact is that I have this function that creates objects of the Person class and stores them in an array. I create it correctly, the problem I have is that I want to show the value of the object created in an HTML div. This is the constructor...
asked by 19.11.2017 / 18:17
2
answers

Referencing a javascript file in another

I have an html file that contains a button, which when pressed calls a function "newBiblioteca ()" which is responsible for creating a library-type object. The problem is that when you click on the button the browser does not do anything. And se...
asked by 04.11.2017 / 15:06
1
answer

ObjectInputStream does not correctly display the object data

I want a program that reads a serialized file that contains the data of an object called "Comarca": on the one hand it has strings (comarq) and on the other ints (poblacio). The name of the file must be passed as a parameter (go, for the main ar...
asked by 27.09.2017 / 01:29
1
answer

How do I store an object in Session in Asp.net core Web api?

// public class OrderVM { public User numUsu { get; set; } //La lista es de ProductOrder public List<ProductOrder> Products {get; set;} } var orderView = new OrderVM(); or...
asked by 22.04.2017 / 00:20
2
answers

Print object from an arraylist [duplicate]

When trying to print the list of objects I get the error of java.lang.NullPointerException public Productos(int id, int precio, String nombre) { this.id = id; this.precio = precio; this.nombre = nombre; } public int getId() {...
asked by 11.12.2018 / 20:48
0
answers

Pass an object between classes

I am learning graphical interface in java with JFrame and I want to pass an object of a frame which creates a series to the main frame where I can see different objects. I thought about using a getter so that the return is of the Series typ...
asked by 12.09.2018 / 09:38