Questions tagged as 'iteraciones'

3
answers

Improve Performance Nested Foreachs

I have 2 foreach nested of a class articles, in which I go through two lists, and if the item in list 1 is in list 2, it must do a couple of operations, the dilemma is that when dealing with very long lists, it takes a long time and I nee...
asked by 04.07.2017 / 04:10
2
answers

NgFor only supports binding to Iterables such as Arrays

Good morning, I am new at Angular2 and I have some problems with the use of Observables and components ERROR to be fixed    ERROR Error: Can not find a differ supporting object '[object Object]' of type 'object'. NgFor only supports bind...
asked by 13.11.2017 / 16:12
1
answer

Different results when using different ways to traverse an array in JavaScript

The purpose of my program is to create two functions, some() and every() , which emulate the functions Array.prototype.some() and Array.prototype.every() , respectively. My code: function every(array, callback) {...
asked by 21.01.2018 / 18:47
1
answer

For loop in python

Good morning, The value of x is a decrease of 1.0 - 0.01 asi, the first value of x=0.99 the second x=0.98 and the third x=0.97 The first value is x1=1.0 The problem is the update of x1 and t...
asked by 13.03.2017 / 19:19
1
answer

The execution of the program does not enter the foreach

Good I am learning to use the foreach loop in java but I do not get my program inside, I hope you can give me some clue, thanks. import java.util.ArrayList;import java.util.Scanner; public class Taller { private ArrayList<Vehiculo> list...
asked by 18.04.2018 / 21:35
1
answer

doubt recursion

I have a sample code of a printing procedure recursively in reverse order of the contents of a list that I do not understand. This is the code: My doubt: I imagined the operation of this, I thought it would be like this: start the execution o...
asked by 25.07.2017 / 19:33
1
answer

Problem with iteration if [duplicate]

I have these three classes Main window.java package com.bruno.javaserialgui.ventanas; import java.awt. ; import java.awt.event. ; import javax.swing. *; import com.bruno.javaserialgui. * ;; @SuppressWarnings("serial") public class ve...
asked by 24.07.2016 / 18:15