Questions tagged as 'array'

2
answers

Help How to fill a dataSet in javascript?

I have the following line of code var registro1 = [ "1", "Perez", "Lopez", "Luis", "Martin", "22" ]; var registro2 = [ "2", "Gonzales", "Jimenez", "Reyna", "Maria", "18" ]; var registro2 = [ "3", "Rodriguez", "Dominguez", "Luis", "Fernando", "...
asked by 11.07.2018 / 06:12
1
answer

Convert an observable to a local array

Save the value of the observable array in a local array and use it to add more users, since the remote server link it does not allow to edit the data, it is test. user.component.ts users: User[]; getUsers() { return this.userService....
asked by 26.06.2018 / 14:50
1
answer

get the id of a php array

I have this array object(stdClass)[138] public 'articles' => array (size=39) 0 => object(stdClass)[140] public 'id' => int 56 public 'title' => string 'prueba con servicio json es tt aa' (l...
asked by 29.06.2018 / 00:42
4
answers

Return array of objects by AJAX

I am developing a sales system, and in the ticket window I have the search button that allows me to go to another page with the list of articles. This consists of two buttons. One is adding that adds the product in question to an array of detail...
asked by 18.07.2018 / 19:38
1
answer

PHP - Array does not take first value when selecting another line of text

I'm having an inconvenience when it comes to getting some data. There are 3 different lines separated by commas (,). The first line reads it to me perfect, now, when it's going to read the second and third line, the first value does not take it...
asked by 20.06.2018 / 13:56
1
answer

print sum of matrices in java

Hellos ppl, I come with a curiosity, the code below works well, if I have the following arrays: int [][] vec1 = {{1,2,3},{4,5,6}}; int [][] vec2 = {{7,8,9},{10,11,12}}; It gives me as a result: [ 8 10 12 14 16 1...
asked by 01.07.2018 / 04:37
1
answer

How do I create a random array of numbers from 1 to 100 without repeating them [closed]

I am doing a bingo and I would like to create the cardboard with 15 numbers from 1 to 100 without repeating them. Javascript Any kind of help is appreciated     
asked by 09.06.2018 / 17:08
1
answer

How to get a two-dimensional array from an arrayList public ArrayListString [] []

I have the structure of the following function: public String [][] obtieneMinimoEstadoHijos(ArrayList<String[][]>listaEstadosHijos){ } I've searched for information on how to print the matrices contained in an arrayList. But I can n...
asked by 16.09.2018 / 13:24
1
answer

I need to replace values from an array (Java)

I'm doing a maze and I need to replace the values ("") with ("or") to be able to create the walls of the levels, but I do not know how to do it. The standard level is as follows, it starts at ("*") and ends at ("F") String[][] matriz = {...
asked by 07.06.2018 / 16:37
3
answers

How do I get an array with numbers and letters and a space to add up and form a word?

The exercise would be like this: const array_A = ["H",3,"o",4,"l",5,"a",6," ",7,"M",8,"u",9,"n",10,"d",11,"o"] const array_B = ["s",1,"t",2,"a",3,"c",4,"k"] const array_C = ["o",1,"v",2,"e",-3,"r","f","l","o","w"] You would have to see th...
asked by 16.10.2018 / 18:43