Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
0 votes
2 answers
89 views

In what object can i add both lists and floats so i can find the list with the lowest float value

Say i have some iterations. In each iteration, a list of integers and a float number are created. 1st iteration: [0,2,4,3,0] , 285 are created 2nd iteration: [0,8,5,6,0] , 230 are created ... nth ...
Yannis_Tr's user avatar
0 votes
3 answers
102 views

Isolating/indexing/ranging through a list object tuple set

So basically I have a tuple set kind of like this. tuple_set = [('name1', 'score'), ('name2', 'score'), ('name3', 'score')] It basically is a specific list in a larger dictionary of names/scores. I ...
funjunkstorage's user avatar
1 vote
0 answers
119 views

After reading list containing objects using ObjectInputStream how to iterate through the list?

I have a binary file having some list where each list has group of similar objects I am using ObjectInputStream to read the list series one by one Now, instead of directly printing the list I want to ...
Payel Senapati's user avatar
-1 votes
1 answer
29 views

Store Objects and call those Objects one after another in an iteration cycle

I want to store 4 value-objects in a list and then call each of the objects in an iteration cycle, so that they are execute one after each other. I assigned the objects to a value and stored those in ...
SS-Tiger's user avatar
1 vote
1 answer
72 views

Iterating through a list which is an object of a table

public List<AnswerValues> getAllAnswers(Forms fm){ Session sess = getSession(); Criteria crit = sess.createCriteria(FormQuestions.class); crit.add(Restrictions.eq("fkformId",fm)); ...
bahdotsh's user avatar
  • 467
-1 votes
1 answer
83 views

C++ Object variables in list don't update during iteration

When iterating through a list, the variables of the object in the list won't update, with debugging it looked like the variables only updated temporarily until the loop ended. Why is this? I've been ...
Brian Boddaert's user avatar
0 votes
2 answers
64 views

Iterating through two lists of objects Python

I have two long lists of objects in Python: queries_list (list of Query objects) and results_list (list of Result objects) I'd like find Result objects that are related to a Query, using a common ...
YNR's user avatar
  • 875
5 votes
2 answers
26k views

Python iteration of list of objects "not iterable"

New to Python, but I have been researching this for a couple hours. Forgive me if I missed something obvious. I have a class called LineItem, which has an attribute _lineItems, a list of LineItems ...
VMills's user avatar
  • 183
2 votes
1 answer
79 views

Find and delete specific objects from a Set with minimal iteration using Java

I have a set of objects and each object has its own id... I also have a list of ids, each denoting the id of an object to be removed from the set.. Unfortunately I need the most efficient approach ...
matt's user avatar
  • 83
2 votes
2 answers
3k views

Optimal way to generate list of PHP object properties with delimiter character, implode()?

I am trying to find out if there is a more optimal way for creating a list of an object's sub object's properties. (Apologies for the crude wording, I am not really much of an OO expert) I have an ...
ploink's user avatar
  • 110