Questions tagged as 'array'

1
answer

ifelse with two conditions

I want to create a new variable from two dataframes, as long as two conditions are met. The df 1 and the 2 have two common variables, but only the df 1 contains a variable that I would like to join the df 2. I tried to use the vectorized functio...
asked by 30.07.2018 / 13:00
1
answer

Use foreach to display array data within an array

I am using the CCv5 and CFv5 components (from chronoengine) within the latest version of Joomla 3.x to, first, get information from different tables and now what I need is to show some of the information with a foreach ( or similar). Specific...
asked by 03.10.2017 / 01:43
1
answer

Browse, compare and assign dictionaries and lists

I have an array called labels such that: labels Out[15]: array([ 0, 1, 2, ..., 7, 10, -1]) I also have a dictionary called IDnodes which contains for each key an array of Boolean type and each array is of a different length...
asked by 08.05.2017 / 11:00
2
answers

NullPointerException with an array of Node Lists

I'm making an array with lists of nodes that I have to organize from another list that contains 200 nodes with a value from 0 to 9 each (value assigned random). The Nodes must be removed from the Main List and assigned to the corresponding List...
asked by 11.09.2016 / 19:02
1
answer

Create an instance of another ArrayList

I have an ArrayList in a class and I want to reference it in another class, I've read that I can copy an ArrayList like this: ArrayList<Persona> profesor= new ArrayList<>(persona); However, every time I run it gives me a...
asked by 12.06.2016 / 16:15
1
answer

Array overflow

I have this overflow problem in an array that I have within several objects.    java.lang.ArrayIndexOutOfBoundsException: 7       at Exercise.Visiting.run (Visitor.java:73) The code public class Visitor extends Thread { private String...
asked by 18.12.2016 / 04:30
4
answers

Print One-dimensional array in input hidden

I have the variable $style = [1, 2, 1] ; in php and what I want is to send this Array as you see it here, in the value of a input hidden of HTML , to capture it in my controller and use it in other...
asked by 27.07.2016 / 17:06
1
answer

PHP does not return all the results of a query to Oracle when there are many records

I'm making queries from PHP to an Oracle database. The problem is that when the database has few records (5 for example), when I go through the oci_fetch_array function, it returns them without problem, but when it is 100 records it returns...
asked by 21.07.2017 / 12:24
2
answers

Value placement NOT constant in fixes

Good evening, I try to create a C ++ program that combines arrays in for and switch; however, I mark error in the declaration of the variable numbers [p], I know that it is because the number between the brackets must be a constant. My question...
asked by 14.11.2017 / 04:15
4
answers

Error compiling "request for member 'size' in '* (int *) (& Dia)"

I have implemented a code for an enum that contains the days of the week, the problem that I get is with the function size() , I do not understand much the error, I tried to use a pointer to end() , but not I get nothing. Here is the...
asked by 13.10.2018 / 15:55