Category "arrays"

Why some of the functions of array objects are not working when selecting them from the menu?

I created this program in Java programming to get all recipes details inputs from user and then user can choose to insert, find, remove or display recipes detai

ArrayIndexOutOfBoundsException - Scoreboard with images

I am trying to make a scoreboard with images in processing, with images from 0 to 9, but any number greater than 9 does not make changes It should be something

How to limit an array field in javascript object to a certain length

I know this may a simple problem but I have a the following javascript object: const categories = { title: 'cat1', contents: [ { nam

Merging two sorted array on third by creating a new array on heap

I have a class array inside which I have declared an array its size and length. I am trying to merge two sorted arrays by creating the third array on the heap a

LabVIEW: Count how long a button has been pressed

I'm trying to create a LabVIEW VI with an "ok button", a numeric indicator "Number of click" and an array of cluster, in which every cluster contain a TimeStamp

I'm trying to understand php foreach list, I'm missing something [duplicate]

This should probably be simple, but I'm missing something. I want to have two arrays, combine them, then list out the values. I obviously don'

Data structure handle as array

i'm use data structure to store JSON data Class node Friend ReadOnly position As Integer Friend ReadOnly position_Array As Integer Pub

Looping through a 3-D Array

I initially asked this question How to loop through a specific row of a 2-dimensional Array? and @FaneDuru was kind enough to supply a solution but now I am hop

How to read from a .txt file into an array of objects

I have the following sample data in a .txt file 111, Sybil, 21 112, Edith, 22 113, Mathew, 30 114, Mary, 25 the required output is [{"number":"111","name":"Syb

java.lang.ArrayStoreException when extending a list with new elements

I am calling methods with parameters like this: methodName(Object... param). These methods I can't change. To keep my code a bit more dynamic, I have lists whic

Iterate Object and replace values

I have this Object: { "data": { "success": true, "historical": true, "date": "2022-01-01", "base": "MXN", "rates": { "COFFEE": 0.021

How do I filter or re/assemble and collect data-items where each of an item's many color values meets a certain condition?

I have this sample data and I wanted to filter it where the colors are less than 20 or equal to 20: const data = [ { name: "Item1", colors: { green: 8 } },

How to read from a file and parse it

I have a file .txt containing some values formatted like this: 0,30,25,10 Now, I open up the file and store it into an array char imposta_tratt[300]; FILE *f

How to fix and understand this Segmentation Fault (core dump) error? I cannot comprehend it whatsoever

I am tasked with creating a C code that does what page-replacement algorithms do. The code is barely 200 lines, so I will try to send some portions and hopefull

I want to combine the objects in the array, how should I change them?

const data = [ { productId: 6, productName: "pouch", productPrice: 29000, discountRate: 19, optionName: "13inch", optionPrice: 0,

Java - How to replace entire 2D ArrayList with another that has different size

I have 2D ArrayList consisting of Objects, i pass it to a function in another class, like this: public void function(ArrayList<ArrayList<Object>>)..

How to access a specific value in array

I want to access each element of my "to" value of the children property in my array. const items = [{ name: 'Administrateur', children: [ { name:

How to access nested array

I am trying to access recipeIngredient in this array. I have tried this: <cfloop from="1" to="#ArrayLen(contents)#" index="i"> <cfoutput> #i.recip

ARRAYFORMULA(VLOOKUP(QUERY(IMPORTRANGEs))) instead of ARRAYFORMULA(QUERY(IMPORTRANGEs)) doesn't work

I am importing data from 4 sources, their format is: | C | D | E | F | G | H | | 31.03.2022 | * | -60 000 | * | * | Prep

Creating and Emailing Totals Doc from Google Form Responses

I am trying to create a function that takes form response data and applies it to a template to create a 'completion certificate' with their total scores, then e