Questions tagged as 'array'

0
answers

Read string explicitly as an Array - PHP

Next I need to transform the string below into a multidimensional vector: $tesste = "[ ['Faturamento', 32000, '2017-05-23',[ 'Tes-OBI' => 'TESTE']],['Faturamento', 50000, '2017-05-24',[ 'Tes-OBI' => 'TESTE']]]"; Is there any logic or...
asked by 23.05.2017 / 22:24
1
answer

How do I save an array of quantities and sizes to the bank for a product registration? PHP [closed]

I have a crud where I register the product, inside this register I have a modal where it is possible to inform the sizes and quantities of the product that I am registering, then this modal returns me an array of sizes and an array of quantities...
asked by 08.06.2017 / 17:53
1
answer

Doubt about filling arrays and functions within arrays

   insira o código aquiArrayList<Player> players = new ArrayList<Player>(); for(contador=0;contador<x;contador++){ Player p1 = new Player(); p1.setId(contador); p1.setSaldo(valorinteger = Integer.parseInt(parts[2]));...
asked by 07.06.2017 / 05:29
0
answers

Search Array with certain characteristics

Hello, I'm developing a very basic game with Javascript, but I came across a little something that I could not solve until now, the question would be, I have an Array, in which I randomly include 28 objects, and those objects have a position < st...
asked by 07.06.2017 / 07:21
1
answer

Folding Machine

I'm studying for a college programming challenge and my teacher gave some programming exercises to train. The bending machine was proposed, but I am not able to develop the input process, in which the person assigns several values for the machin...
asked by 07.05.2017 / 13:51
1
answer

Working with Generics

First, the task:    Create a new Map class, now using the name SortedMap. She must have   the same methods of the Map class of the previous task, and accept as   type Key type K that implements the Comparable interface. The array   of key pai...
asked by 19.04.2017 / 19:48
1
answer

Recording only the last line in the DB

To make a form to input products into stock (NF mirror) so I am using a javascript code to clone the rows. So, okay, the problem is when it's time to register because it only registers the last line of products, will it be a problem in my ins...
asked by 11.04.2017 / 19:44
1
answer

Return objects added from an array in one

Next, I'm a designer and I'm learning javascript slowly. One of the things that I have the most difficulties, are objects and arrays, so I'm focusing on it now. I have an array with 4 objects as the following code. var players = [{ name: "Ba...
asked by 01.04.2017 / 20:29
1
answer

How to compare, remove equal, etc. elements of two vectors in java?

I'm doing a java job to perform operations together, however as I'm learning now I do not know how to compare vector elements to do the following operations, union, intersection, difference, and complement, I want to do the operations after prin...
asked by 24.03.2017 / 05:10
1
answer

JS moving a variable that does not have to move

I've made a code that groups a few more items into one, by position x and y . The code is doing it correctly, but I'm having a problem. The first time the function executes, it does the whole process normally. When I click on a butt...
asked by 23.03.2017 / 19:24