Questions tagged as 'array'

1
answer

Help with assembly ArrayList code in Java (search, insert String)

Good evening, I have to develop a code, but I have some doubts, follow the code below: public class Aluno { String nome; int mat; Aluno(String nome, int mat) { this.nome = nome; this.mat = mat; } @Override public String toString() {...
asked by 26.08.2014 / 01:45
2
answers

How to convert an EntryString element, Integer to String?

I'm using: List<Map.Entry<String,Integer>> lista = new ArrayList<Map.Entry<String,Integer>>(fila); And I do some operations after that part .. After I do these operations, I need to put each "object" of the list in a...
asked by 26.09.2014 / 01:22
1
answer

Convert string into array function

I need a function that converts this string into an array as follows 3:2,4:1,5:1 //string array ( [3] = 2 [4] = 1 [5] = 1 )     
asked by 23.09.2014 / 15:38
1
answer

Button to add a new field

I'm creating an application that calculates the average of 3 numbers, so long, but now I wanted to create a '+' button that at the time I clicked on it it would add a new field and make that calculation with the fourth and so on but I did not fi...
asked by 11.09.2014 / 20:48
2
answers

Group keys in an array

How to group identical keys and values in an array? There may be N arrays inside the array, you can not add the same keys. For example: [attributes] => Array ( [0] => Array ( [title] => C...
asked by 16.09.2014 / 17:13
1
answer

Vector in Java with fields in each cell

I'm doing a work in java and I need to know how I do a structure similar to a C struct, where each cell in the vector has 3 fields, example vector [i] .ity, vector [i]. height .. . If anyone can show me a code from a framework already implemente...
asked by 19.09.2014 / 05:42
1
answer

How to generate data for graphs

I'm doing a page that will have several types of graphics ... But my base is coming by jQuery, Example: var wo = new Array(); var listItemEnumerator = this.customlist.getEnumerator(); while ( listItemEnumerator.moveNext() ) { var oListIte...
asked by 29.07.2014 / 14:38
1
answer

array in javascript that communicates in php

I need to create a array in javascript tag that is submitted your information to a page php . How can I do this? Next, I had a php that I uploaded, repeated data from the bank. So to improve her performance, I've created a scri...
asked by 05.03.2014 / 15:12
2
answers

How to make the variable id not repeat in the loop?

I am trying to get associative%% as argument of this methods, actually receive a array in the first argument and a numeric value in the second. My question is how to make the array variable not repeat? Well, you're giving thi...
asked by 19.11.2014 / 18:53
3
answers

Insert summary when there is a change in a PHP Array

To with a doubt that may be easy, but I have broken the head, I have a table that is generated through an array, follow the code below: foreach($grupo_arr $k => $v){ ?> <tr> <td><?php echo $num_array[$k]; ?&...
asked by 08.06.2018 / 15:10