Questions tagged as 'array'

1
answer

JavaScript doubt: clutter array with loop

I am doing an exercise for a job and I have a problem when messing an array. That is, I have an array called "numbers" and a function that messes up. Then I create an empty array called "disordered numbers" which I will fill with three positions...
asked by 12.05.2018 / 18:15
1
answer

Compare the data of a matrix with a character

I'm starting to program in java, novice in this language, I'm doing a cinema seating assignment program, which I'm doing with a matrix of dimension 6, but when comparing the matrices with a character it performs well but I enter || (or) to compa...
asked by 09.02.2018 / 16:27
1
answer

Get values of javascript dynamic inputs

I'm trying to create a two-dimensional array with dynamic data. These data are requested to the user through some inputs. The program first asks for the size of the matrix and from that, dynamic inputs are generated based on the order you chose....
asked by 19.02.2018 / 03:20
1
answer

rotate an image 90 degrees

I have a code problem with this method rotate 90Right (). Statement Write a method that is capable of rotating an image 90 degrees to the right. This is my code: /** * Rota la imagen 90 grados hacia la derecha */ public void rotar90ALaDe...
asked by 08.02.2018 / 16:19
1
answer

Compare two cars (Arrays) by entering their identifiers by scanner

How could I get the car with the highest number of kilometers asking the user to enter two identifiers of the cars? public class Coches { int identificador; int kilometros; public Coches(){} public Coches(int identificador,...
asked by 13.01.2018 / 13:40
1
answer

Perform mathematical operations in real time or array results

First of all, a cordial greeting! I tell you my drawback: I have 2 lists of inventory type (one is the origin of the data and the other should print the values entered in the first to be sent by email) the thing is that the values such as VAT,...
asked by 27.12.2017 / 08:00
1
answer

How to pass a Select and a Checkbox type input as dependent two-dimensional arrays through $ POST to a table?

I have the following form. <!DOCTYPE html> <html> <head><title>ARREGLO_BID</title></head> <body> <form method="POST" action="pruebados.php"> <select name="form[][txtmateria]">...
asked by 27.12.2017 / 16:16
1
answer

How can I re-empty the array after there is no match?

I am new to this, I want to know how I can do if there is no match, empty the array so that I can check again? If there is a match, both are shown, if there is not, they are returned, that happens only once, I can not make the game meaningful....
asked by 17.12.2017 / 16:46
1
answer

add an item or cell having an array, in a collectionView

Greetings to all! I hope someone can solve my problem, I have my CollectionView, and in it I put a sampleObject, which contains an image and a label and a function to add these examples, this returns an array and I put it in my collection: and w...
asked by 16.12.2017 / 00:44
2
answers

array_push changes the values

link As you can see in the example array_push or array_unshift save [data] with the last value. <?php $filters = json_decode(strtolower('{"groupOp":"AND","rules":[{"field":"codigo","op":"cn","data":"ampolla 213"},{"fiel...
asked by 27.11.2017 / 13:12