Questions tagged as 'array'

0
answers

convert an array to an integer

you can convert every position of an array to an integer and save it in different variables. and how it would be done. I found that a string variable pdia become integer like this: $VarInt= (int)$varString; so try this way: for ($i=0; $i...
asked by 09.04.2018 / 23:59
1
answer

Fatal error: Can not use object of type Course as array in

Hello, I have this function that pulls out an array but when I try to get the name of the following form, for example [0] ['name'] tells me that the object of type Course can not be used as a matrix. public function mostrarCurso(){ $db = B...
asked by 11.04.2018 / 13:56
0
answers

How to save a list of data within a vector to save in a JTable

I am making a small software that allows entering the data of a new user and that the employee can see the data in a table. But it does not save the data in the JTable so I'm trying to create a vector to save the data and pass it to the table bu...
asked by 05.04.2018 / 23:31
1
answer

Problem with listing an ArrayList in JAVA JSP

I have the following problem: I'm doing a shopping cart, a task, I'm a novice in this Java Server Pages, and I have a Product class where I have a method that returns a List and invoke that method from a JSP called a catalog, see here: //Me...
asked by 05.04.2018 / 00:28
2
answers

How can I add a name (String) within a predefined array in java?

Load an array with 3 predefined fruit names String fruits [] = {"apple", "orange", "melon"}; 2.Add a name to the list by keyboard.     
asked by 01.04.2018 / 04:26
1
answer

Arrangement ticket by reference in a procedure

My question is this: I have to do a procedure with two fixes as parameters, one for value and another for reference. My question is that when I compile it gives me an error that says "arr" and "arr2" was not declared in this scope . I lea...
asked by 25.03.2018 / 00:10
0
answers

URL with fixes in Angular

Is it possible to send a variable that contains an array of id in a url from one component to another in Angular? What I try to do is modifying the variable dynamically because I do not start how many ids to send and once I finish sending the va...
asked by 19.03.2018 / 21:20
0
answers

How to pass a PHP fix to a javascript function

My javascript code is to generate a random number and show it, but I want it to only show it if it is not already included in the array it is the name of the varible ' arr ' <script type="text/javascript"> function aleatorio(a,b, arr...
asked by 19.03.2018 / 17:15
1
answer

Obtain values of the same index in different array and assign them different values

I have 2 arrays that are the following: int[] used = {300,525,110} int[] total = {350,600,115} (By the way, the language is C # in case someone asks.) What I try to achieve is to go through each of the arrays and compare the values betwe...
asked by 26.03.2018 / 23:53
0
answers

Return to React complex structure with objects and arrays Nested Map

Hello friends, some capo that can help me, I tell you; I receive this data with this structure of an API, how could I render the errors? map, foreach ??? It is an object that contains an array with errors, that array receives objects that at...
asked by 09.03.2018 / 14:58