Questions tagged as 'collection'

1
answer

Print content of an object belonging to a TreeSet (Collection) [duplicate]

I have a TreeSet that will store several objects of a "Products" class, this class has 3 attributes:    int codProduct;        String descProduct;        float precoProduct; After storing some "Product" objects in this TreeSet, I ne...
asked by 21.11.2018 / 12:54
1
answer

What is the difference between parameterized class, multiobjects and collections?

Well, I know the concepts of each one. I just do not know how to differentiate them. For example, a parameterized class is a class that is used to define other classes, and a collection can be represented by a parameterized class. However, what...
asked by 24.03.2017 / 04:34
1
answer

How to return data array with join in Laravel with DB class?

I need help with this SQL of Laravel : $process = $db->table('processo')->where('nrprocesso',$id) ->leftJoin('viatransporte', function($viatransporte){ $viatransporte->on('processo.idviatransporte', '=', 'viatra...
asked by 19.03.2017 / 16:03
1
answer

Shuffle List

I would like to shuffle an ArrayList, and I'm trying to do this with Collections.sort (), but I do not think it's happening The code I'm using is this: Thread t = new Thread(new Runnable() { @Override public void run()...
asked by 31.07.2018 / 14:11
1
answer

Collection for use in stock

What is the best implementation of the Collection interface for implementing an inventory class? For example, a stock of grocery products. My scenario is as follows: A stock management system from a supermarket, this collection would make t...
asked by 22.05.2016 / 07:15
1
answer

Inserting Items into a Vb6 collection [duplicate]

Good morning, people. The circumstance is as follows. I created a Type and it has its attributes. I would like to know how do I insert data into a collection (in Vb6). For example: I created the Type Person that has a first and last name attri...
asked by 23.04.2014 / 15:10