Questions tagged as 'array'

2
answers

Failed PHP Array

Failure in the first line of the array, can someone tell me what the error is?    Parse error: syntax error, unexpected '= >' (T_DOUBLE_ARROW), expecting   ']' $DAW [ 'Sistemas informaticos'=>$horas['plazas'=>30,'horas'=>100]...
asked by 30.11.2017 / 20:39
1
answer

reorder array java

Good morning, I have two classes in java called Kart and another CarreraKart where I simulate a race. I would like to show in the array that I display the sorting already ordered when they move forward. The method has to be like that is the one...
asked by 29.12.2017 / 11:09
1
answer

How to access the elements of an array Arraylist? [closed]

How could I access this type of arraylist? List<String[]> arraylist1= new List<String[]>; String[] splits = Str.Split(';'); The question is, how can I get the information for the second position in the array? _________________...
asked by 04.12.2017 / 13:37
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
1
answer

Get values from a table and convert it into an array

I have a table like the following, in which data is inserted, what I want to achieve is that when pressing the button an array is formed which contains four fixes each of them with the value of each one of the inputs. The arrangement that I n...
asked by 18.10.2017 / 20:01
2
answers

How to save parameters in an object array?

I'm doing this program import java.util.*; public class gestionDesposito { public static void main(String[] args) { int tamanio=0; String identificador="00001"; double lado=1000; double alto=500; Scanner sc= new Scanner(Sy...
asked by 20.10.2017 / 12:50
1
answer

Exception in thread error "main" java.lang.ArrayIndexOutOfBoundsException: 0 at gestionDesposito.main (gestionDesposito.java:13)

I do not know how to solve this error (I think it's because I do not aim well at the position of the array but I do not have much idea how to fix it). import java.util.*; public class gestionDesposito { public static void main(String[] args)...
asked by 20.10.2017 / 12:07
2
answers

Help in php with arrays

Hello friends I am a beginner in php language, I need to do the following: Create an arrangement with movies and its leading actor. In ANOTHER arrangement to put the movies and their release year. Taking data from both arrangements, show each mo...
asked by 11.09.2017 / 20:58
2
answers

Convert to int string of an array

I have the following code: $dat[] = ["2016-11-09", 1]; $dat[] = ["2016-11-09", 1]; $dat[] = ["2016-11-15", 1]; $dat[] = ["2016-11-16", 1]; $dat[] = ["2016-11-16", 1]; $dat[] = ["2016-11-17", 2]; $fechaAnt=""; $repetidos=1; //agregado f...
asked by 11.08.2017 / 23:01
3
answers

Print an array of dates

Array ( [Monday] => Array ( [0] => 2017-07-03 [1] => 2017-07-17 [2] => 2017-07-31 ) [Friday] => Array ( [0] => 2017-06-30 [1] => 2017-07-14 [2] => 2017-07-28 ) ) My goal is to get...
asked by 03.07.2017 / 17:29