Questions tagged as 'array'

1
answer

How to make a json array: $ in swift 3?

Hello, I need help, I do not know how to do a JsonArray in swift 3, the only thing I've achieved is to do this: { "Etiqueta":"valor", "":"", "":"" } and what I need to do is this: [ { "Etiqueta":"valor", "Etiqueta":"...
asked by 16.09.2017 / 02:22
2
answers

how to get the index of an element in an array of arrays

I have a matrix and I need to find the index of a specific element in a column . I have seen the index of method but only used in normal arrays of strings, ints etc not in arrays of arrays or arrays. for example I have String tablero[]...
asked by 15.10.2017 / 23:16
0
answers

Cycle decrement For does not work - ActionScript 2

I'm trying to make an image gallery with ActionScript 2. The forward button works perfectly, but the backward button does not work. This is the code of the back button: on(release){ var imgs:Array = new Array(); imgs[1] = {img: ImgBox1...
asked by 28.04.2017 / 22:16
1
answer

Arrangements in PHP with Netbeans IDE

I need to make a record in PHP where each person is included in the list. I must evaluate if the name of the existing color in a second arrangement that contains the name of the color and the meaning of each one, in case of finding it, it is...
asked by 31.03.2017 / 04:26
1
answer

problem when sending an array by onclick method, shows undefined

Good morning everyone, I have a problem sending an array by an "onclick" method when wanting to show the array sent I get "undefined" onclick code: firebase.database().ref("/4/").on("value", (dataSnapshot) => { dataSnapshot.fo...
asked by 04.05.2017 / 15:31
1
answer

how can I add the common values of an ArrayListString in Java?

public class Inicio { public static void main(String[] args) { ArrayList<String> lanzadas = new ArrayList<String>(); int opcion = 0; int totalCara = 0; int totalCruz = 0; Scanner entrada = n...
asked by 20.03.2017 / 05:38
2
answers

I have a problem with a NullPointerException when comparing a String [closed]

Well, in this program the idea is to register a department and then register an employee, which asks you for a department in which the employee works. The problem is that when I put the department I made a method to compare the one with an ex...
asked by 02.03.2017 / 02:03
0
answers

I want to print a random string of my Array

It does not let me print a random string from my list private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { srand(time(0)); std::string word[] = {"black","metal"}; for (int i = 0; i < 1; i++) {...
asked by 01.01.2017 / 23:48
2
answers

Parse data from an object inside a JSON in Angular2

I followed this tutorial to create a table with a JSON in Angular 2 . link My question is, if I had a JSON of this type: {"visitas": [{ "_id": "586b5d313406cd103c3f38d5", "fecha":"01-ene-2017", "paciente": { "_...
asked by 31.01.2017 / 22:36
2
answers

Parsear array object in php

I am consuming a Webservice Soap of type asmx from PHP . I receive the data but it does not give me the object array ordered with the fields that returns the XML of the Webservice , it is like that it show...
asked by 05.01.2017 / 20:59