Questions tagged as 'array'

2
answers

Go through values of a JSON [duplicate]

Through jQuery I am making a call to a select to bring populations from a province and to be able to fill a selection depending on the province chosen. At the moment I get it right, but I can not get the values that the array brings me....
asked by 14.10.2016 / 11:12
2
answers

Android: Bitmaps arrayList

As I generate a bitmap arraylist in my setImage setter, look for some examples but I only found the following example My code public class CheckIn { private int folio; private String customer; private String delivery; private ArrayList<B...
asked by 29.11.2016 / 15:39
2
answers

Access the elements of a bidimensional matrix by column?

There is some way to get the columns of one matrix per column in two repetitive cycles, that is, if I have the matrix: A = [21.0][16.0][16.0][13.0][11.0] [17.0][18.0][14.0][23.0][13.0] [32.0][27.0][15.0][41.0][19.0] [6.0] [10.0][12.0][15.0][4...
asked by 08.09.2016 / 22:40
1
answer

Delete a card from the DOM and at the same time delete from the localStorage the data contained in this

Recently I started my first project with JavaScript (my first language). It is a note application, where when creating a new one an element is created that is added to the DOM and at the same time to the localStorage and the opposite...
asked by 23.12.2018 / 07:26
1
answer

Copy and sort matrix in C

I am learning C but I am still very new. I face the following problem: given a square matrix I must copy it in another matrix and order it as follows: For example, if I work with this input matrix: {0,0,0,0,0,0,0,0,0} {0,0,0,0,0,0,0,0,0} {0,0,...
asked by 05.01.2019 / 05:44
1
answer

save data in an array with js

I have two variables with their respective values: lat = ["-100.41812896728515","-100.41812896728517","-100.41812896728519"] lng = ["20.62346622550882","20.623466225508828","20.623466225508828"] What I want is to unite both that is...
asked by 27.12.2018 / 18:17
1
answer

Delete duplicate php array [duplicate]

I have an array like this: Array ( [0] => Array ( [iataCity] => NRT [nameCity] => Tokyo ) [1] => Array ( [iataCity] => MIA [nameCity] => Miami ) [2] =>...
asked by 18.12.2018 / 16:35
2
answers

Find the differences between arrays of type index = array in PHP

I need to find the differences between two arrays with the following structure: array([0] => array([ciudad] => "Londres" [pais] => "Inglaterra") [1] => array([ciudad] => "París" [pais] => "Francia")... [n] => array([ciudad...
asked by 08.12.2018 / 03:33
1
answer

Error java.lang.ArrayIndexOutOfBoundsException in java

I have an error in a very basic java exercise. I have not touched this language for a long time, and I do not know what is happening ... (I'm sorry if it's silly, but I do not see it, really). I have a vector, of 100 positions, which I fill i...
asked by 08.12.2018 / 21:49
1
answer

Are arrangements based on 0 or 1 on Delphi / Pascal?

I want to make an arrangement in Delphi. I found a solution with this code: var arr: array of String; Every time I add something, I do it this way: var Form1: TForm1; var arr : array of String; procedure TForm1.Button1Click(Sender: T...
asked by 29.08.2016 / 18:11