Questions tagged as 'array'

0
answers

problems to prevent a good code fix but it gives error

At the time of calling a method, from another class, which prints the class array gives me error called the method this is the method: public static void tecOpciones() { int valores = 0, selec; do { do { sele...
asked by 19.12.2018 / 00:05
1
answer

How to read word by word from an Array? [duplicate]

What I'm looking to do is a counter that adds the value of each word in its ASCI code. For example: Hello (H = 45, or = 56, l = -45, a = 23. Total Value = 79). This is the code of my Accountant: public class Accountant { public static f...
asked by 14.12.2018 / 16:47
2
answers

Sort array by repeated words in PHP

I have an array in PHP (laravel) with words extracted from certain tweets. I need to be able to create a list or table where a word is displayed and the number of times it repeats in that array. That is, if the word is "hello" and it is repeated...
asked by 16.12.2018 / 22:53
0
answers

Android Studio - Save records of a table in an Array

For my project I have a database in which I insert 10 records to the "books" table (it has 9 fields). These 10 records I need to save them in an Array [i] and then do something with the information. For example, in Array [0] you have to bring me...
asked by 11.12.2018 / 07:02
2
answers

Insert element type date in an array every determined number of elements

I'm trying to insert a string which is a date every 5 elements that are generated dynamically. const utils = require('./utils'); const moment = require('moment'); const flatpickr = require('flatpickr'); const Spanish = require('flatpi...
asked by 08.12.2018 / 01:42
0
answers

Create an array by iterating the rows of a table of pandas with conditions. Python

I'm creating a table with pandas where the first two columns are created with numpy arrays: age = np.random.randint(20,85,size=400) possible_genders = ['male','female'] gender = [np.random.choice(possible_genders) for i in range(400)] the...
asked by 09.12.2018 / 19:58
0
answers

Pass JSON-Ajax variable to PHP variable

I need to pass an array / JSON / Ajax variable to a PHP variable, so that I can manage it in my file. I currently have this in index.php: <script type="text/javascript"> $("#enviar").click(function(e) { e.preventDefault(); var...
asked by 10.12.2018 / 18:16
0
answers

Array using i2C

Is it possible that a data thrown by a sensor (the data thrown is unsigned char ) using the command i2c_read() , dato=10101010 , be saved in a array as datoarray[8]={1,0,1,0,1,0,1,0} instead of as type unsigned...
asked by 08.12.2018 / 22:08
1
answer

Implode does not work for me PHP

if( count($usuario['info']['cv']['habilidad']) > 0 && isset($usuario['info']['cv']['habilidad']) && $usuario['info']['cv']['habilidad']){ $html .= '<div style="font-size: 16px; border-bottom: 1px solid #999999; color: #F...
asked by 05.12.2018 / 00:29
0
answers

Go from unsigned char to vector (array)

My question is this: I am programming in C and compiling with XC8 in MPLAB X. I have a sensor that returns data in the form of "unsigned char" (8 bits per data) and I would like to access the bits of that data byte. I had thought about con...
asked by 05.12.2018 / 23:31