Questions tagged as 'array'

4
answers

How to copy a datagrid to an arraylist

I have a button and command and when I click on it, I need to copy all information from my datagrid to an Arraylist. For example: The datagrid has 4 columns and 10 lines all have information, now comes my dilemma, when clicking on the baton I ne...
asked by 19.03.2015 / 15:59
1
answer

Exception in thread "main" java.lang.NullPointerException

How do I resolve this error?    Java - Exception in thread "main" java.lang.NullPointerException at Client.ClientClient (Client.java:43) at Operacoes.main (Operations.java:9) Follow my code: import javax.swing.JOptionPane; public clas...
asked by 01.02.2015 / 16:40
1
answer

Query in MySQL with undesirable items - PHP

I need to compare two arrays that come back from MySQL, but one of them is coming back with several strange items, making my comparison impossible. I have already filtered the search to return only the field I want, but there is no way ... Ta...
asked by 25.11.2014 / 04:07
2
answers

How to receive an array and print its contents using PHP?

I need to know how to store the data of an array into a variable, using the looping below: Receiving data: $sql="SELECT 'devicetoken' FROM 'devicetokensios' ORDER BY 'index'"; $resultado = mysql_query($sql) or die ("Erro .:" . mysql_err...
asked by 14.11.2014 / 16:54
3
answers

How to create an array with object from an SQL query

I need the following result inside a variable from a query PHP + MySQL : array(1) { [0] => object(stdClass) #1 (3) { ["id"]= > string(2) "1" ["nome"] => string(5) "teste" ["email"] => string(18) "contato@teste...
asked by 25.11.2015 / 21:48
1
answer

Save two-dimensional array into EEPROM memory

I'm doing a program for Arduino written in C ++ to turn on and off leds when a button is pressed. I want to save the values of the LEDs that are on and the amount of brightness in an EEPROM memory. I thought of using an array, so the first el...
asked by 08.08.2014 / 16:33
2
answers

How to create multiple vectors dynamically with Javascript? [closed]

I get a value on the input screen, and I need to construct the number of arrays according to the number I received. Example: I get 64 in the input, so I need to create 64 arrays     
asked by 15.04.2016 / 21:20
2
answers

Passing data from javascript to an array in php

I have a small problem that I would like some ideas to solve: I have a request screen, where I select the product in a combo, I inform the quantity and when I click on a button, I want to insert the data of the value of the combo and the valu...
asked by 05.04.2014 / 16:33
1
answer

Minimum value of each Python array column

import numpy as np X = np.random.rand(4,3) print("X: \n", X) XMin = np.zeros((1,3), dtype=np.float64) for j in range(3): print("X[{0}]: {1}".format(j,X[j])) minimo = np.amin(X[j]) print("minimo: ", minimo) np.append(XMin, minim...
asked by 26.11.2018 / 02:31
1
answer

Error reading txt file line by line

I'm having trouble reading the dist1.txt file and are able to pass the values of each line and pass to an array of the other class. The file has the following format .txt: 1;1;00 1;2;14 1;3;05 1;4;05 1;5;12 1;6;15 2;1;14 2;2;00 2;3;07 2;4;0...
asked by 30.10.2018 / 04:04