Most voted "list" questions
A list is an abstract type of data that represents a sequence of values, in which the same value can occur more than once. The main ways to implement a list is through an array (array, vector or one-dimensional matrix) or a chained list.
Learn more…1,022 questions
Sort by count of
-
0
votes2
answers1220
viewsError povoar combobox - An unhandled Exception of type 'System.Invalidoperationexception' occurred in mscorlib.dll
This is a Cod. to fill a combobox with a list that will be populated by the insert event that will redeem a value from a textbox, and will cause the name selected in combobox1 not to appear in…
-
0
votes3
answers1045
viewsSeparate values from List
I’m using List to sort some values, but I need to separate them after I manipulated the values. List<Map.Entry<String,Integer>> lista = new…
-
0
votes0
answers279
viewsPlay music on my Android app
I’m wanting to make a list with song names , and when I click on some list item play the song. Does anyone know how to do this? I was looking around on websites and I found this: public void…
-
0
votes3
answers4347
viewsCheck if the item exists in a List<>
I have a list typed in C# and I need to search for an item through several filters. I demonstrate in codes: List<LoteRecla> listLoteRecla = new List<LoteRecla>(); I tried using the…
-
0
votes1
answer215
viewsProblem with Arraylist values passed by Intent
I am having trouble recovering all values of selected items from a list that are passed by Intent, as the result shows the last product from the list. I’ve tried everything, but I don’t understand…
-
0
votes0
answers750
viewsWhat’s the best way to queue
Guys, what’s the best way to queue in java. For example I select 3 files, these files stay in a queue until the process of reading and generating the report is finished, as soon as the report is…
-
0
votes2
answers113
viewsList method for null returning jComboBox
Hello! I’m having trouble listing my BD data in a jComboBox. The method I use is as follows: public void setComboBoxSetorChamado(List<Setor>setores){ idSetor = new int[setores.size()+1]; int i…
-
0
votes1
answer251
viewsHow to load a Recycleview with a list?
I have a List loaded with a JSON of a query with multiple records and multiple columns: List<Videos> lstVideos = new ArrayList<Videos>(); So far so good. What I need is to carry one…
-
0
votes0
answers1131
viewsTake input from an Arraylist to generate report in ireport
How can I get the Dice from the list to go to the ireport? I already tried to give a "get" but error. This is my method that generates the report: public void gerarRelatorio(ArrayList list) { for…
-
0
votes1
answer208
viewsHow do I send a data source list to a sub report and call that sub report in my main report
Good morning guys, I’m having a little problem. I’m trying to pass a lista as data source for my sub report. I already have the main report which is also filled in by a list. My question is this,…
-
0
votes1
answer1988
viewsList returns only last element
Eae guys, after a lot of work I managed to get several xml tags to play in an Excel report. But when I populate the list with my object and step into the report only the last element is listed. I’ve…
-
0
votes1
answer1060
viewsJoin several Arraylist in one collection
It is possible to join 3 Arraylist in a collection and then send as datasource for a report. Or have another way to do this? I have 3 Arraylist of 3 objects, I wanted the information of these lists…
-
0
votes2
answers763
viewsIs it possible to compare items from two lists and if there is similarity between items do not display this item in a datatable?
I have a list that is populated by data from an xml file and another list that is returned from a query in the database. I wonder if it is possible to compare an existing code in these 2 lists. If…
-
0
votes1
answer82
viewsHow can I interact with a class that is behind two?
Good night! I will explain the problem since the title is not suggestive of it. I have to develop an online shopping system, able to manage the purchases of each user. If you think about it,…
-
0
votes1
answer643
viewsFilling a Listbox with Paradox(Delphi) Database
Good afternoon, my friends. I’m having trouble filling a listbox with information from a Database table in Paradox, Data Source is the file "Gap03dm.Sourcechaves" and Datafield is "Field". How to…
-
0
votes2
answers226
viewsWhy does the following code print 'None' instead of the list?
The program must receive values, in a quantity specified by the user. I need a list to be created with these values. Why does this code not work? quantidade = int(raw_input()) inicio = 0 lista1 =…
-
0
votes1
answer77
viewsMany lines in a csv file
The scenario of my doubt is the following: I have a system that reads a file that has around 3 million lines, each line has a separator, I identify each item on the line, I do the proper treatment…
-
0
votes1
answer396
viewsKnow how many elements I have in an array in Arduino
I have an ARRAY of at most 100 row by 2 columns, which will be filled by a user. My program will play user activity after. What I want to know is how to know how many lines were filled with data.…
-
0
votes2
answers211
viewsCreate chained list with realloc()
I need to implement a simply chained list that does not have a next indication, that is, it should function as an array, accessing nearby positions in memory. I’m using the realloc() command to try…
-
0
votes1
answer57
viewsMy list still has Tail and head as null
It was all going well until I noticed that the list is not filled out, leaving my head and Tail as null. Supposedly the program should read from an input file and fill in the list within a cycle.…
-
0
votes2
answers57
viewsCreate dynamic structures based on a text file
Is it possible to create a dynamic structure based on information stored in a text file(file)? Or this is only possible if the file is binary? For example: if I have a number (5) in a text file, can…
-
0
votes1
answer102
viewsPython 3 dicts and zip problem
I’m having trouble with my job dict(zip(x, y)) when I pass as parameter the two lists (x and y) the zip does not create the list of the original size, randomly creates the list in the original size,…
-
0
votes1
answer1247
viewsSolve duplicate items in Dict in Python 3
I’m having trouble with my dict. I need it not to delete duplicate key values. I have a style tuple lista_tupla = [(1, [1, 2, 3, 4]), (2, [5, 6, 7]), (3, [7, 8, 9]), (3, [10, 11, 12]), (4, [13, 14,…
-
0
votes2
answers216
viewsPerform Insert into in c#List
One could give an example of what an sql Insert would look like in a list in c#?
-
0
votes1
answer497
viewsProceedings with Nodejs
I would like to know how to take all processes with the nodejs equal to the c# Process[] processlist = Process.GetProcesses(); I would like to do this in NODEJS, to return all the PID from the…
-
0
votes0
answers77
viewsContinuous division - Indexerror: list index out of range
for i in lista: lista.append(X) X = X * 0.5 for i in range(100): print 'N[%d] = %.4f' %(i, lista[i]) This mistake always happens: Indexerror: list index out of range…
-
0
votes0
answers1212
viewsJava - Selenium - Use contains with element list
I have on a website the products that were added in the cart. I want to check that the product "Test T-Shirt" has been successfully added. For this, I have a string where this value (Test T-Shirt)…
-
0
votes1
answer229
viewsHow to make an orderly list?
I need to set any value, and this value should serve as the amount of numbers in an ordered list, where at each position of the list there should be the cumulative sum of 1 up to the position number…
-
0
votes2
answers108
views(C++) Deck: Differences between position access types
I am implementing the Backpack Problem with Dynamic Programming in C++ and chose the deck to build my list. Studying on it, I noticed these two different ways to access a specific position of the…
-
0
votes2
answers170
viewsI cannot update because it is not recovering php Pdo id
Here is to recover in html: if(isset($_GET["id"])){ $administrador = new Administrador(); $mostrar = $administrador->listar_id($_GET["id"]); } <form action="Crud.php" method="post"…
-
0
votes0
answers71
views -
0
votes1
answer77
viewsConvert 'const Std::string' to 'Std::string &'
I have a mistake and would like tips to fix it I have my Node struct inside the Dllist class: struct Node { Type m_data; Node *m_next, *m_prev; Node(Type& v, Node* _prev) : m_data(v),…
-
0
votes1
answer109
viewsIonic + Angularjs error list item
I made a list in Ionic that returns some values, but when I click on the list to show these values completely, I am not able to recover... my controller: app.factory('services', ['$http',…
-
0
votes1
answer74
viewsDoublyllist C++ // Insert value at index position (with iterator)
My insert function is correct, but I’m having memory Leak because when I debug, temp->prev->prev was pointing to nullptr instead of pointing to the rest of the list, when it has 3+ elements.…
-
0
votes1
answer137
viewsChained list is not removing the elements
I cannot remove elements from the list. class no { public int dado; public no prox; } class lista { no ini; no fim; public void crialista() { ini = null; fim = null; } public void inserir(int num) {…
-
0
votes2
answers66
viewsList removal
I have a program that registers trucks, cargo and cities through a list. I tried to remove the truck list, but when I removed it, the insertion still continues, as if I hadn’t removed anything. What…
-
0
votes1
answer83
viewsIgnore certain indices in a Python list
I have the following situation: I have a list of 64 items and I want the first two values to be displayed and all the other ones after 2. An example would be: lista =…
-
0
votes1
answer97
viewsDuplicate data C#
I made a basic registration system in C#. I created a List<T> to keep my data in memory and then display it. But when I register the second person, this data "clones" the other data. When I…
-
0
votes1
answer124
views -
0
votes1
answer700
viewsRefresh in jframe automatically
I will start a project where I will do the control of queues in java, normal queues even, as if you arrive at the bank and see on the screen your name. I’ll give a summary of the project to be…
-
0
votes1
answer26
viewsScript to list images in descending form (from last to first)
Hello. I have this script that shows a list of images within a certain folder, and allows you to choose the amount of images to show per page. But if the files have the names 1.jpg 2.jpg 3.jpg , it…
-
0
votes2
answers3050
viewsScroll through a Dict until it is empty in Python
How do I go through while a list of values and keys is non-zero, just add the values (values()) in a list? The code I have is this: hey = ['item1', 'item2', 'item3', 'item4'] print("hey", hey) lol =…
-
0
votes4
answers457
views4x4 matrix with 20 elements
Galera made a code in Python whose exercise asked to make a 4x4 matrix , show the amount of elements larger than 10 and show the final matrix. I did and everything was fine only that the matrix ta…
-
0
votes1
answer105
viewsProblem in Dict class and merging large amount of elements per Python Dict
Hi, I’m having trouble with dict. I have two lists: lista1 and lista2, both the same size. When I execute the command: dicionario = dict(zip(lista1, lista2)) produces a dictionary "smaller" than the…
-
0
votes1
answer1178
views -
0
votes2
answers1123
viewsProblem with lists - Python
I can’t do: Ages and heights of 5 students were noted. Do a Program to determine how many students over 13 are tall lower than the average height of such pupils. Final Code: idadeAlunos =…
-
0
votes1
answer1419
viewsHow to Get a json list of a JAVA Api?
I have the following return of an api {"type":"champion","version":"7.10.1","data":{"89":{"id":89,"key":"Leona","name":"Leona","title":"a Alvorada…
-
0
votes1
answer193
viewsSplit List with more than a thousand lines - . NET
I’m getting an error while performing this select sb = New StringBuilder sb.Append(" SELECT ") sb.Append(" SE.NU_SERIE_NF, ") sb.Append(" SE.NU_NF, ") sb.Append(" SE.DH_ENTREGA, ") sb.Append("…
-
0
votes1
answer65
viewsCreate dynamic structures from a text file?
I have data stored in a text file. I want to read the text file and store the data in my variables, then insert them in my function inserir_medico that will use the data to create a concatenated…
-
0
votes2
answers58
viewsShopping list within function
I’m trying to solve an exercise I’m doing in PHP (I’m a beginner) but I can’t get the code to work, the following message is displayed: "Notice: Undefined variable: in C products: xampp htdocs…