Questions tagged as 'array'

2
answers

Java Lang Array Error

Good afternoon, I'm adapting this code to make the search based on an automaton. The automaton will search for dates in the source codes of web pages and will display those dates on the console. This is a java lang error on line 122 of the packa...
asked by 23.08.2015 / 22:56
1
answer

Printing problem with C

Good morning. I have a problem solving a question of an issue here in college. Here's the question. Theteachergavethesourcecode(following)#include<stdio.h>#include<stdlib.h>#include<locale.h>#definedimencao10typedefstructce...
asked by 31.08.2015 / 16:24
3
answers

How to fill an array of another class in JAVA

I have created a method inside a class that looks for RS in the database, it works perfectly, but when I use it in another class, it does not do the desired thing, see the method: public void preencherArrayCidades(ArrayList acidades) throw...
asked by 31.08.2015 / 17:40
1
answer

Array php loop [closed]

For the array: Array ( [45] => Array ( [car] => stdClass Object ( [consortiums] => stdClass Object ( ), [92] => Array ( [ca...
asked by 18.06.2015 / 15:37
3
answers

Access to arrays of other HTML functions

I have this code: function shuffle(array) { var counter = array.length, temp, index; // While there are elements in the array while (counter > 0) { // Pick a random index index = Math.floor(Math.random() * count...
asked by 22.07.2015 / 15:41
1
answer

Add Arrays with php

I'm not sure what I want to do, but I'm not sure how to do this. Array ( [0] => Array ( [0] => Array ( [i_chamada] => 1...
asked by 02.04.2015 / 15:00
1
answer

How to merge identical values of array, and put the different ones inside a subarray

I have the following problem. I have an array returned from the database that looks like this: array(4) { [0]=> array(4) { ["groupoURL"]=> string(7) "express" ["grupoNome"]=> string(13) "Express" ["subgrupoURL"]=>...
asked by 23.01.2015 / 01:58
2
answers

Sum of multidimensional array values in PHP

I'm building a shopping cart and I'm using sessions to save the cart products. The array structure that saves the items is as follows: $_SESSION['carrinho'][ID_DO_PRODUTO;TAMANHO_SE_HOUVER] => QUANTIDADE An example of items in the shoppi...
asked by 29.12.2014 / 20:53
1
answer

display on the screen the contents of the position?

import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintStream; import java.util.Scanner; public class Trabalho { public static void main(String[] arg...
asked by 20.11.2014 / 23:02
1
answer

Merge multiple ArrayList into a collection

It is possible to join 3 ArrayList into a collection and then send it as datasource to a report. Or do you have another way to do it? I have 3 ArrayList of 3 objects, I wanted the information from these lists all together in one report. Me...
asked by 15.04.2015 / 13:20